Fatal error: Uncaught Error: Non-static method Foo::bar() cannot be called statically in /in/N7F7s:24
Stack trace:
#0 {main}
thrown in /in/N7F7s on line 24
Process exited with code 255.
Deprecated: Non-static method Foo::bar() should not be called statically in /in/N7F7s on line 24
Bar
Fatal error: Uncaught Error: Call to undefined method Foo::get_called_class() in /in/N7F7s:7
Stack trace:
#0 /in/N7F7s(10): Foo::{closure}()
#1 /in/N7F7s(24): Foo::bar()
#2 {main}
thrown in /in/N7F7s on line 7
Process exited with code 255.
Output for 7.3.32 - 7.3.33, 7.4.26
Bar
Fatal error: Uncaught Error: Call to undefined method Foo::get_called_class() in /in/N7F7s:7
Stack trace:
#0 /in/N7F7s(10): Foo::{closure}()
#1 /in/N7F7s(24): Foo::bar()
#2 {main}
thrown in /in/N7F7s on line 7
Process exited with code 255.
Strict Standards: Non-static method Foo::bar() should not be called statically in /in/N7F7s on line 24
Bar
Fatal error: Call to undefined method Foo::get_called_class() in /in/N7F7s 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/N7F7s on line 16
Process exited with code 255.