Fatal error: Uncaught TypeError: test(): Argument #1 ($bar) must be of type Bar, Foo given, called in /in/U7M4W on line 11 and defined in /in/U7M4W:5
Stack trace:
#0 /in/U7M4W(11): test(Object(Foo))
#1 {main}
thrown in /in/U7M4W on line 5
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to test() must be an instance of Bar, instance of Foo given, called in /in/U7M4W on line 11 and defined in /in/U7M4W:5
Stack trace:
#0 /in/U7M4W(11): test(Object(Foo))
#1 {main}
thrown in /in/U7M4W on line 5
Process exited with code 255.
Catchable fatal error: Argument 1 passed to test() must be an instance of Bar, instance of Foo given, called in /in/U7M4W on line 11 and defined in /in/U7M4W on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Class 'Bar' not found in /in/U7M4W on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/U7M4W on line 5
Process exited with code 255.