| 12345678910111213141516171819202122232425262728293031323334353637 |
- =============
- Rule ``psr4``
- =============
- Class names should match the file name.
- .. warning:: Using this rule is risky.
- This fixer may change your class name, which will break the code that depends
- on the old name.
- Examples
- --------
- Example #1
- ~~~~~~~~~~
- .. code-block:: diff
- --- Original
- +++ New
- @@ -1,3 +1,3 @@
- <?php
- namespace PhpCsFixer\FIXER\Basic;
- -class InvalidName {}
- +class Psr4Fixer {}
- Rule sets
- ---------
- The rule is part of the following rule sets:
- @Symfony:risky
- Using the ``@Symfony:risky`` rule set will enable the ``psr4`` rule.
- @PhpCsFixer:risky
- Using the ``@PhpCsFixer:risky`` rule set will enable the ``psr4`` rule.
|