self_accessor
Inside class or interface element self should be preferred to the class name itself.
self
Risky when using dynamic calls like get_called_class() or late static binding.
--- Original +++ New <?php class Sample { const BAZ = 1; - const BAR = Sample::BAZ; + const BAR = self::BAZ; public function getBar() { - return Sample::BAR; + return self::BAR; } }
The rule is part of the following rule sets:
@PhpCsFixer:risky
@Symfony:risky