Hello
Before!
Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 0 passed in /in/tIGFu on line 22 and exactly 1 expected in /in/tIGFu:13
Stack trace:
#0 /in/tIGFu(22): foo()
#1 /in/tIGFu(8): {closure}()
#2 /in/tIGFu(47): {closure}()
#3 /in/tIGFu(8): {closure}()
#4 /in/tIGFu(56): {closure}('bar')
#5 {main}
thrown in /in/tIGFu on line 13
Process exited with code 255.
Output for 7.0.0 - 7.0.33
Hello
Before!
Warning: Missing argument 1 for foo(), called in /in/tIGFu on line 22 and defined in /in/tIGFu on line 13
Notice: Undefined variable: bar in /in/tIGFu on line 15
catch_all_exceptions: Caught Exception: Exception: Error ! in /in/tIGFu:15
Stack trace:
#0 /in/tIGFu(22): foo()
#1 /in/tIGFu(8): {closure}()
#2 /in/tIGFu(47): {closure}()
#3 /in/tIGFu(8): {closure}()
#4 /in/tIGFu(56): {closure}('bar')
#5 {main}
NULL
Hello
Before!
Warning: Missing argument 1 for foo() in /in/tIGFu on line 13
Notice: Undefined variable: bar in /in/tIGFu on line 15
catch_all_exceptions: Caught Exception: exception 'Exception' with message 'Error !' in /in/tIGFu:15
Stack trace:
#0 [internal function]: foo()
#1 /in/tIGFu(22): call_user_func_array('foo', Array)
#2 /in/tIGFu(8): {closure}()
#3 [internal function]: {closure}()
#4 /in/tIGFu(47): call_user_func_array(Object(Closure), Array)
#5 /in/tIGFu(8): {closure}()
#6 /in/tIGFu(56): {closure}('bar')
#7 {main}
NULL
Output for 5.3.0 - 5.3.29
Catchable fatal error: Argument 1 passed to decorate() must be an instance of callable, instance of Closure given, called in /in/tIGFu on line 51 and defined in /in/tIGFu on line 3
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/tIGFu on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/tIGFu on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/tIGFu on line 3
Process exited with code 255.