Deprecated: Calling static trait method foo::a is deprecated, it should only be called on a class using the trait in /in/piUFm on line 16
Fatal error: Uncaught Error: Non-static method foo::a() cannot be called statically in /in/piUFm:16
Stack trace:
#0 /in/piUFm(28): bing->a()
#1 {main}
thrown in /in/piUFm on line 16
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Fatal error: Uncaught Error: Non-static method foo::a() cannot be called statically in /in/piUFm:16
Stack trace:
#0 /in/piUFm(28): bing->a()
#1 {main}
thrown in /in/piUFm on line 16
Process exited with code 255.
Deprecated: Non-static method foo::a() should not be called statically in /in/piUFm on line 16
Goodbye Moonarray(0) {
}
array(1) {
[0]=>
string(3) "foo"
}
Deprecated: Non-static method foo::a() should not be called statically in /in/piUFm on line 21
Goodbye Moonarray(1) {
[0]=>
string(3) "bat"
}
array(1) {
[0]=>
string(3) "foo"
}
Deprecated: Non-static method foo::a() should not be called statically, assuming $this from incompatible context in /in/piUFm on line 16
Goodbye Moonarray(1) {
[0]=>
string(3) "foo"
}
array(0) {
}
Deprecated: Non-static method foo::a() should not be called statically, assuming $this from incompatible context in /in/piUFm on line 21
Goodbye Moonarray(2) {
[0]=>
string(3) "foo"
[1]=>
string(3) "bat"
}
array(0) {
}
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35
Strict Standards: Non-static method foo::a() should not be called statically, assuming $this from incompatible context in /in/piUFm on line 16
Goodbye Moonarray(1) {
[0]=>
string(3) "foo"
}
array(0) {
}
Strict Standards: Non-static method foo::a() should not be called statically, assuming $this from incompatible context in /in/piUFm on line 21
Goodbye Moonarray(2) {
[0]=>
string(3) "foo"
[1]=>
string(3) "bat"
}
array(0) {
}