Fatal error: Uncaught ArgumentCountError: Too few arguments to function Foo::peek(), 0 passed in /in/iejBX on line 21 and exactly 1 expected in /in/iejBX:11
Stack trace:
#0 /in/iejBX(21): Foo->peek()
#1 {main}
thrown in /in/iejBX on line 11
Process exited with code 255.
Warning: Missing argument 1 for Foo::peek(), called in /in/iejBX on line 21 and defined in /in/iejBX on line 11
Notice: Undefined variable: target in /in/iejBX on line 12
Notice: Trying to get property of non-object in /in/iejBX on line 12
Bar:
Notice: Undefined variable: target in /in/iejBX on line 13
Notice: Trying to get property of non-object in /in/iejBX on line 13
Baz:
Output for 5.0.0 - 5.0.5
Warning: Missing argument 1 for Foo::peek() in /in/iejBX on line 11
Notice: Trying to get property of non-object in /in/iejBX on line 12
Bar:
Notice: Trying to get property of non-object in /in/iejBX on line 13
Baz:
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/iejBX on line 4
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/iejBX on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/iejBX on line 4
Process exited with code 255.