Her is my code:
class MyClass { public $prop; public function method () { echo $this->prop; } }
Then somewhere in the
Calling non-static methods statically generates an E_STRICT level warning.
http://php.net/manual/en/language.oop5.static.php
I suppose you have E_STRICT warnings suppressed. It works (likely for legacy reasons), but it's not recommended.