============================= Rule ``self_static_accessor`` ============================= Inside an enum or ``final``/anonymous class, ``self`` should be preferred over ``static``. Examples -------- Example #1 ~~~~~~~~~~ .. code-block:: diff --- Original +++ New `_ References ---------- - Fixer class: `PhpCsFixer\\Fixer\\ClassNotation\\SelfStaticAccessorFixer <./../../../src/Fixer/ClassNotation/SelfStaticAccessorFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\ClassNotation\\SelfStaticAccessorFixerTest <./../../../tests/Fixer/ClassNotation/SelfStaticAccessorFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.