Fatal error: Uncaught TypeError: preg_replace(): Argument #1 ($pattern) must be of type array when argument #2 ($replacement) is an array, string given in /in/rot5i:20
Stack trace:
#0 /in/rot5i(20): preg_replace('/removeIfEmpty/', Array, '')
#1 {main}
thrown in /in/rot5i on line 20
Process exited with code 255.
Warning: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array in /in/rot5i on line 20
Warning: trim() expects parameter 1 to be string, array given in /in/rot5i on line 21
NULL
Output for 5.2.0 - 5.2.17
Warning: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array in /in/rot5i on line 20
Notice: Array to string conversion in /in/rot5i on line 21
string(5) "Array"
Warning: preg_replace(): Parameter mismatch, pattern is a string while replacement in an array. in /in/rot5i on line 20
Notice: Array to string conversion in /in/rot5i on line 21
string(5) "Array"
Output for 4.3.0 - 4.3.1
Notice: Array to string conversion in /in/rot5i on line 21
string(5) "Array"