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 {