mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18: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:
		| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user