mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-21 17:54:24 +00:00
Correct phpstan error: ParsingException is never thrown
The typing of the exception had to be changed, because \Datetime throws an \Exception instead of a ParsingException.
This commit is contained in:
parent
5b0019cde7
commit
81220b5b22
@ -32,7 +32,7 @@ abstract class AbstractSearch implements SearchInterface
|
||||
{
|
||||
try {
|
||||
return new \DateTime($string);
|
||||
} catch (ParsingException $ex) {
|
||||
} catch (\Exception $ex) {
|
||||
$exception = new ParsingException('The date is '
|
||||
.'not parsable', 0, $ex);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user