Fatal error: Uncaught TypeError: foo(): Argument #1 ($foo) must be of type string, null given, called in /in/gqSgE on line 8 and defined in /in/gqSgE:3
Stack trace:
#0 /in/gqSgE(8): foo(NULL, Array)
#1 {main}
thrown in /in/gqSgE on line 3
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type string, null given, called in /in/gqSgE on line 8 and defined in /in/gqSgE:3
Stack trace:
#0 /in/gqSgE(8): foo(NULL, Array)
#1 {main}
thrown in /in/gqSgE on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Warning: Unsupported declare 'strict_types' in /in/gqSgE on line 1
Catchable fatal error: Argument 1 passed to foo() must be an instance of string, null given, called in /in/gqSgE on line 8 and defined in /in/gqSgE on line 3
Process exited with code 255.