Fatal error: Uncaught TypeError: foo(): Argument #1 ($x) must be of type array, int given, called in /in/neFdl on line 20 and defined in /in/neFdl:3
Stack trace:
#0 /in/neFdl(20): foo(5)
#1 {main}
thrown in /in/neFdl on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type array, int given, called in /in/neFdl on line 20 and defined in /in/neFdl:3
Stack trace:
#0 /in/neFdl(20): foo(5)
#1 {main}
thrown in /in/neFdl on line 3
Process exited with code 255.
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type array, integer given, called in /in/neFdl on line 20 and defined in /in/neFdl:3
Stack trace:
#0 /in/neFdl(20): foo(5)
#1 {main}
thrown in /in/neFdl on line 3
Process exited with code 255.
Output for 5.6.0
ERROR (E_RECOVERABLE_ERROR):
array (
'error_level' => 4096,
'message' => 'Argument 1 passed to foo() must be of the type array, integer given, called in /in/neFdl on line 20 and defined',
'filename' => '/in/neFdl',
'line' => 3,
'context' =>
array (
),
'error_level_str' => 'E_RECOVERABLE_ERROR',
)
No problem
Output for 5.0.0
Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /in/neFdl on line 3
Process exited with code 255.