Fatal error: Uncaught TypeError: bar(): Argument #1 ($foo) must be of type Foo, null given, called in /in/2hOek on line 9 and defined in /in/2hOek:5
Stack trace:
#0 /in/2hOek(9): bar(NULL)
#1 {main}
thrown in /in/2hOek on line 5
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to bar() must be an instance of Foo, null given, called in /in/2hOek on line 9 and defined in /in/2hOek:5
Stack trace:
#0 /in/2hOek(9): bar(NULL)
#1 {main}
thrown in /in/2hOek on line 5
Process exited with code 255.
Catchable fatal error: Argument 1 passed to bar() must be an instance of Foo, null given, called in /in/2hOek on line 9 and defined in /in/2hOek on line 5
Process exited with code 255.