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