Skip to content

Commit 604c7e8

Browse files
committed
Fix error_handler type hints
1 parent fb21dea commit 604c7e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Doctrine/Instantiator/Instantiator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,16 @@ private function getReflectionClass($className) : ReflectionClass
132132
*/
133133
private function checkIfUnSerializationIsSupported(ReflectionClass $reflectionClass, string $serializedString) : void
134134
{
135-
set_error_handler(static function ($code, $message, $file, $line) use ($reflectionClass, & $error) : void {
135+
set_error_handler(static function (int $code, string $message, string $file, int $line) use ($reflectionClass, & $error) : bool {
136136
$error = UnexpectedValueException::fromUncleanUnSerialization(
137137
$reflectionClass,
138138
$message,
139139
$code,
140140
$file,
141141
$line
142142
);
143+
144+
return true;
143145
});
144146

145147
try {

0 commit comments

Comments
 (0)