From 37ad2380e8c1a8cf62a1200a5c10080b679b446c Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Wed, 4 Dec 2024 16:33:28 +0100 Subject: [PATCH] [ErrorHandler] Fix error message with PHP 8.5 --- Tests/phpt/fatal_with_nested_handlers.phpt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/phpt/fatal_with_nested_handlers.phpt b/Tests/phpt/fatal_with_nested_handlers.phpt index cfb10d0..81becaf 100644 --- a/Tests/phpt/fatal_with_nested_handlers.phpt +++ b/Tests/phpt/fatal_with_nested_handlers.phpt @@ -24,7 +24,7 @@ var_dump([ $eHandler[0]->setExceptionHandler('print_r'); if (true) { - class Broken implements \JsonSerializable + class Broken implements \Iterator { } } @@ -37,14 +37,14 @@ array(1) { } object(Symfony\Component\ErrorHandler\Error\FatalError)#%d (%d) { ["message":protected]=> - string(186) "Error: Class Symfony\Component\ErrorHandler\Broken contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JsonSerializable::jsonSerialize)" + string(209) "Error: Class Symfony\Component\ErrorHandler\Broken contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Iterator::current, Iterator::next, Iterator::key, ...)" %a ["error":"Symfony\Component\ErrorHandler\Error\FatalError":private]=> array(4) { ["type"]=> int(1) ["message"]=> - string(179) "Class Symfony\Component\ErrorHandler\Broken contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JsonSerializable::jsonSerialize)" + string(202) "Class Symfony\Component\ErrorHandler\Broken contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Iterator::current, Iterator::next, Iterator::key, ...)" ["file"]=> string(%d) "%s" ["line"]=>