<?php
class T
{
public function __callStatic($method, $args)
{
echo "__callStatic() called\n";
}
public function f()
{
echo "f() called\n";
}
}
T::f();
Warning: The magic method __callStatic() must have public visibility and be static in /in/CcLv8 on line 5
Deprecated: Non-static method T::f() should not be called statically in /in/CcLv8 on line 15
f() called
Output for 7.3.32 - 7.3.33
Warning: The magic method __callStatic() must have public visibility and be static in /in/CcLv8 on line 5
f() called
Warning: The magic method __callStatic() must have public visibility and be static in /in/CcLv8 on line 5
Strict Standards: Non-static method T::f() should not be called statically in /in/CcLv8 on line 15
f() called