Fatal error: Uncaught TypeError: bar(): Argument #1 ($foo) must be of type Foo, string given, called in /in/f9IgY on line 10 and defined in /in/f9IgY:6
Stack trace:
#0 /in/f9IgY(10): bar('I like turtles')
#1 {main}
thrown in /in/f9IgY on line 6
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to bar() must be an instance of Foo, string given, called in /in/f9IgY on line 10 and defined in /in/f9IgY:6
Stack trace:
#0 /in/f9IgY(10): bar('I like turtles')
#1 {main}
thrown in /in/f9IgY on line 6
Process exited with code 255.
Warning: Unsupported declare 'strict_types' in /in/f9IgY on line 2
Catchable fatal error: Argument 1 passed to bar() must be an instance of Foo, string given, called in /in/f9IgY on line 10 and defined in /in/f9IgY on line 6
Process exited with code 255.