From 604c7e86d2ab7b555ef14fc937c2aa4547c6f086 Mon Sep 17 00:00:00 2001 From: Thomas Perez Date: Wed, 26 Jun 2019 11:16:12 +0200 Subject: [PATCH] Fix error_handler type hints --- src/Doctrine/Instantiator/Instantiator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Doctrine/Instantiator/Instantiator.php b/src/Doctrine/Instantiator/Instantiator.php index 4364190..cba21f5 100644 --- a/src/Doctrine/Instantiator/Instantiator.php +++ b/src/Doctrine/Instantiator/Instantiator.php @@ -132,7 +132,7 @@ private function getReflectionClass($className) : ReflectionClass */ private function checkIfUnSerializationIsSupported(ReflectionClass $reflectionClass, string $serializedString) : void { - set_error_handler(static function ($code, $message, $file, $line) use ($reflectionClass, & $error) : void { + set_error_handler(static function (int $code, string $message, string $file, int $line) use ($reflectionClass, & $error) : bool { $error = UnexpectedValueException::fromUncleanUnSerialization( $reflectionClass, $message, @@ -140,6 +140,8 @@ private function checkIfUnSerializationIsSupported(ReflectionClass $reflectionCl $file, $line ); + + return true; }); try {