mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-21 09:44:23 +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 {
|
try {
|
||||||
return new \DateTime($string);
|
return new \DateTime($string);
|
||||||
} catch (ParsingException $ex) {
|
} catch (\Exception $ex) {
|
||||||
$exception = new ParsingException('The date is '
|
$exception = new ParsingException('The date is '
|
||||||
.'not parsable', 0, $ex);
|
.'not parsable', 0, $ex);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user