Fatal error: Uncaught TypeError: bar(): Argument #1 ($foo) must be of type int, string given, called in /in/dOikN on line 7 and defined in /in/dOikN:3
Stack trace:
#0 /in/dOikN(7): bar('7foo')
#1 {main}
thrown in /in/dOikN on line 3
Process exited with code 255.
Catchable fatal error: Argument 1 passed to bar() must be an instance of int, string given, called in /in/dOikN on line 7 and defined in /in/dOikN on line 3
Process exited with code 255.
Output for 5.1.0 - 5.1.6
Fatal error: Argument 1 passed to bar() must be an object of class int, called in /in/dOikN on line 7 and defined in /in/dOikN on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Argument 1 must be an object of class int in /in/dOikN on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/dOikN on line 3
Process exited with code 255.