Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed and exactly 2 expected in /in/buOI7:12
Stack trace:
#0 [internal function]: {closure}(Array)
#1 /in/buOI7(12): preg_replace_callback('/^foo$/', Object(Closure), 'foo')
#2 {main}
thrown in /in/buOI7 on line 12
Process exited with code 255.
Fatal error: Uncaught ArgumentCountError: Too few arguments to function {closure}(), 1 passed and exactly 2 expected in /in/buOI7:12
Stack trace:
#0 [internal function]: {closure}(Array)
#1 /in/buOI7(14): preg_replace_callback('/^foo$/', Object(Closure), 'foo')
#2 {main}
thrown in /in/buOI7 on line 12
Process exited with code 255.
Warning: Missing argument 2 for {closure}() in /in/buOI7 on line 12
Notice: Undefined variable: replacement in /in/buOI7 on line 13
string(3) "bar"
string(0) ""