diff options
Diffstat (limited to 'tests/lang/catchable_error_001.phpt')
-rw-r--r-- | tests/lang/catchable_error_001.phpt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/lang/catchable_error_001.phpt b/tests/lang/catchable_error_001.phpt index b11a7c8d96..499ac14430 100644 --- a/tests/lang/catchable_error_001.phpt +++ b/tests/lang/catchable_error_001.phpt @@ -2,21 +2,21 @@ Catchable fatal error [1] --FILE-- <?php - class Foo { - } + class Foo { + } - function blah (Foo $a) - { - } + function blah (Foo $a) + { + } - function error() - { - $a = func_get_args(); - var_dump($a); - } + function error() + { + $a = func_get_args(); + var_dump($a); + } - blah (new StdClass); - echo "ALIVE!\n"; + blah (new StdClass); + echo "ALIVE!\n"; ?> --EXPECTF-- Fatal error: Uncaught TypeError: Argument 1 passed to blah() must be an instance of Foo, instance of stdClass given, called in %scatchable_error_001.php on line 15 and defined in %scatchable_error_001.php:5 |