Fatal error: Uncaught TypeError: test(): Return value must be of type Foo, int returned in /in/rfEO7:9
Stack trace:
#0 /in/rfEO7(12): test('5')
#1 {main}
thrown in /in/rfEO7 on line 9
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught TypeError: Return value of test() must be an instance of Foo, int returned in /in/rfEO7:9
Stack trace:
#0 /in/rfEO7(12): test('5')
#1 {main}
thrown in /in/rfEO7 on line 9
Process exited with code 255.
Fatal error: Uncaught TypeError: Return value of test() must be an instance of Foo, integer returned in /in/rfEO7:9
Stack trace:
#0 /in/rfEO7(12): test('5')
#1 {main}
thrown in /in/rfEO7 on line 9
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.21
Warning: Unsupported declare 'strict_types' in /in/rfEO7 on line 3
Parse error: syntax error, unexpected ':', expecting '{' in /in/rfEO7 on line 7
Process exited with code 255.