Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, ArrayIterator given in /in/4TOQj:8
Stack trace:
#0 /in/4TOQj(8): array_map(Object(Closure), Object(ArrayIterator))
#1 {main}
thrown in /in/4TOQj on line 8
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: array_map(): Expected parameter 2 to be an array, object given in /in/4TOQj on line 8
Output for 7.3.0 - 7.3.33
0 => foo
1 => bar
Warning: array_map(): Expected parameter 2 to be an array, object given in /in/4TOQj on line 8