Fatal error: Uncaught Error: Non-static method Foo::bar() cannot be called statically in /in/9ctc2:24
Stack trace:
#0 {main}
thrown in /in/9ctc2 on line 24
Process exited with code 255.
Deprecated: Non-static method Foo::bar() should not be called statically in /in/9ctc2 on line 24
Bar
Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in /in/9ctc2:7
Stack trace:
#0 /in/9ctc2(10): Foo::{closure}()
#1 /in/9ctc2(24): Foo::bar()
#2 {main}
thrown in /in/9ctc2 on line 7
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Bar
Fatal error: Uncaught Error: Cannot access parent:: when current class scope has no parent in /in/9ctc2:7
Stack trace:
#0 /in/9ctc2(10): Foo::{closure}()
#1 /in/9ctc2(24): Foo::bar()
#2 {main}
thrown in /in/9ctc2 on line 7
Process exited with code 255.
Strict Standards: Non-static method Foo::bar() should not be called statically in /in/9ctc2 on line 24
Bar
Fatal error: Cannot access parent:: when current class scope has no parent in /in/9ctc2 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_FUNCTION, expecting T_PAAMAYIM_NEKUDOTAYIM in /in/9ctc2 on line 16
Process exited with code 255.