Take a far-fetched example where I want to call the protected static method from another context via a callback function:
class Foo { protected static function toBeCalled() { } public static function bar() { functionThatAcceptsACallback(function () { self::toBeCalled(); }); } }
Is this possible in PHP 5.3? I could not find a way to make it work ...
source share