Deprecated features in PHP 5.6.x

Calls from incompatible context

Methods called from an incompatible context are now deprecated, and will
generate E_DEPRECATED errors when invoked instead of
E_STRICT. Support for these calls will be removed in
a future version of PHP.

An example of such a call is:

<?phpclass A { function f() { echo get_class($this); }}

class B { function f() { A::f(); }}

(new B)->f();?>

O exemplo acima irá imprimir:

Deprecated: Non-static method A::f() should not be called statically, assuming $this from incompatible context in - on line 7
B