SomeClass::someStaticMethod is callable
SomeClass::someObjectMethod is callable
SomeClass::getMessage is callable
$object->someStaticMethod is callable
$object->someObjectMethod is callable
$object->getMessage is callable
Calling SomeClass::someObjectMethod:
Deprecated: Non-static method SomeClass::someObjectMethod() should not be called statically in /in/2P3dd on line 46
object call
Calling $object->someStaticMethod:
static call
Calling SomeClass::getMessage:
Deprecated: Non-static method SomeClass::getMessage() should not be called statically in /in/2P3dd on line 52
Fatal error: Uncaught Error: Using $this when not in object context in /in/2P3dd:19
Stack trace:
#0 /in/2P3dd(52): SomeClass::getMessage()
#1 {main}
thrown in /in/2P3dd on line 19
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
SomeClass::someStaticMethod is callable
SomeClass::someObjectMethod is callable
SomeClass::getMessage is callable
$object->someStaticMethod is callable
$object->someObjectMethod is callable
$object->getMessage is callable
Calling SomeClass::someObjectMethod:
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method SomeClass::someObjectMethod() should not be called statically in /in/2P3dd on line 46
object call
Calling $object->someStaticMethod:
static call
Calling SomeClass::getMessage:
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method SomeClass::getMessage() should not be called statically in /in/2P3dd on line 52
Fatal error: Using $this when not in object context in /in/2P3dd on line 19
Process exited with code 255.
Output for 8.0.0 - 8.0.9
SomeClass::someStaticMethod is callable
SomeClass::someObjectMethod is not callable
SomeClass::getMessage is not callable
$object->someStaticMethod is callable
$object->someObjectMethod is callable
$object->getMessage is callable
Calling SomeClass::someObjectMethod:
Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($function) must be a valid callback, non-static method SomeClass::someObjectMethod() cannot be called statically in /in/2P3dd:46
Stack trace:
#0 {main}
thrown in /in/2P3dd on line 46
Process exited with code 255.
SomeClass::someStaticMethod is callable
SomeClass::someObjectMethod is not callable
SomeClass::getMessage is not callable
$object->someStaticMethod is callable
$object->someObjectMethod is callable
$object->getMessage is callable
Calling SomeClass::someObjectMethod:
Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method SomeClass::someObjectMethod() cannot be called statically in /in/2P3dd:46
Stack trace:
#0 {main}
thrown in /in/2P3dd on line 46
Process exited with code 255.
Output for 7.3.32 - 7.3.33
SomeClass::someStaticMethod is callable
SomeClass::someObjectMethod is callable
SomeClass::getMessage is callable
$object->someStaticMethod is callable
$object->someObjectMethod is callable
$object->getMessage is callable
Calling SomeClass::someObjectMethod:
object call
Calling $object->someStaticMethod:
static call
Calling SomeClass::getMessage:
Fatal error: Uncaught Error: Using $this when not in object context in /in/2P3dd:19
Stack trace:
#0 /in/2P3dd(52): SomeClass::getMessage()
#1 {main}
thrown in /in/2P3dd on line 19
Process exited with code 255.