/ calc class /
Deprecated: Calling static trait method A::calc is deprecated, it should only be called on a class using the trait in /in/sEiLS on line 17
Fatal error: Uncaught Error: Non-static method A::calc() cannot be called statically in /in/sEiLS:17
Stack trace:
#0 /in/sEiLS(24): MyClass->calc(123)
#1 {main}
thrown in /in/sEiLS 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::calc() cannot be called statically in /in/sEiLS:17
Stack trace:
#0 /in/sEiLS(24): MyClass->calc(123)
#1 {main}
thrown in /in/sEiLS on line 17
Process exited with code 255.
/ calc class /
Deprecated: Non-static method A::calc() should not be called statically in /in/sEiLS on line 17
Fatal error: Uncaught Error: Using $this when not in object context in /in/sEiLS:7
Stack trace:
#0 /in/sEiLS(17): A::calc(5)
#1 /in/sEiLS(24): MyClass->calc(123)
#2 {main}
thrown in /in/sEiLS on line 7
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/sEiLS:7
Stack trace:
#0 /in/sEiLS(17): A::calc(5)
#1 /in/sEiLS(24): MyClass->calc(123)
#2 {main}
thrown in /in/sEiLS on line 7
Process exited with code 255.
Output for 5.6.0 - 5.6.40
/ calc class /
Deprecated: Non-static method A::calc() should not be called statically, assuming $this from incompatible context in /in/sEiLS on line 17
/ calc trait /5
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38
/ calc class /
Strict Standards: Non-static method A::calc() should not be called statically, assuming $this from incompatible context in /in/sEiLS on line 17
/ calc trait /5