/ calc class /
Deprecated: Calling static trait method A::calc1 is deprecated, it should only be called on a class using the trait in /in/oIZPD on line 17
Fatal error: Uncaught Error: Non-static method A::calc1() cannot be called statically in /in/oIZPD:17
Stack trace:
#0 /in/oIZPD(24): MyClass->calc(123)
#1 {main}
thrown in /in/oIZPD on line 17
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
/ calc class /
Deprecated: Calling static trait method A::calc1 is deprecated, it should only be called on a class using the trait in /in/oIZPD on line 17
Fatal error: Uncaught Error: Non-static method A::calc1() cannot be called statically in /in/oIZPD:17
Stack trace:
#0 /in/oIZPD(24): MyClass->calc(123)
#1 {main}
thrown in /in/oIZPD on line 17
Process exited with code 255.
Output for 8.0.0 - 8.0.30
/ calc class /
Fatal error: Uncaught Error: Non-static method A::calc1() cannot be called statically in /in/oIZPD:17
Stack trace:
#0 /in/oIZPD(24): MyClass->calc(123)
#1 {main}
thrown in /in/oIZPD on line 17
Process exited with code 255.
/ calc class /
Deprecated: Non-static method A::calc1() should not be called statically in /in/oIZPD on line 17
Fatal error: Uncaught Error: Using $this when not in object context in /in/oIZPD:4
Stack trace:
#0 /in/oIZPD(17): A::calc1(5)
#1 /in/oIZPD(24): MyClass->calc(123)
#2 {main}
thrown in /in/oIZPD on line 4
Process exited with code 255.
Output for 7.3.32 - 7.3.33
/ calc class /
Fatal error: Uncaught Error: Using $this when not in object context in /in/oIZPD:4
Stack trace:
#0 /in/oIZPD(17): A::calc1(5)
#1 /in/oIZPD(24): MyClass->calc(123)
#2 {main}
thrown in /in/oIZPD on line 4
Process exited with code 255.
Output for 5.6.8 - 5.6.28
/ calc class /
Deprecated: Non-static method A::calc1() should not be called statically, assuming $this from incompatible context in /in/oIZPD on line 17
/ calc1 trait /5
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35
/ calc class /
Strict Standards: Non-static method A::calc1() should not be called statically, assuming $this from incompatible context in /in/oIZPD on line 17
/ calc1 trait /5