Closed
Description
\Foo
should be replaced with self
, but it's not detected by the sniff because of the leading namespace separator:
class Foo
{
public static function bar()
{
\Foo::baz();
}
public static function baz()
{
echo 'foobar';
}
}
Foo::bar();
Failing test: nkovacs@2847398