Skip to content

Commit

Permalink
minor #6284 ClassReferenceNameCasingFixer - Update doc (SpacePossum)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

ClassReferenceNameCasingFixer - Update doc

closes #6276

Commits
-------

11c4220 ClassReferenceNameCasingFixer - Update doc
  • Loading branch information
SpacePossum committed Feb 12, 2022
2 parents 21f5a2a + 11c4220 commit 37e2cbd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/list.rst
Expand Up @@ -210,7 +210,7 @@ List of Available Rules
`Source PhpCsFixer\\Fixer\\LanguageConstruct\\ClassKeywordRemoveFixer <./../src/Fixer/LanguageConstruct/ClassKeywordRemoveFixer.php>`_
- `class_reference_name_casing <./rules/casing/class_reference_name_casing.rst>`_

When referencing a class it must be written using the correct casing.
When referencing an internal class it must be written using the correct casing.

Part of rule sets `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_

Expand Down
2 changes: 1 addition & 1 deletion doc/rules/casing/class_reference_name_casing.rst
Expand Up @@ -2,7 +2,7 @@
Rule ``class_reference_name_casing``
====================================

When referencing a class it must be written using the correct casing.
When referencing an internal class it must be written using the correct casing.

Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion doc/rules/index.rst
Expand Up @@ -88,7 +88,7 @@ Casing

- `class_reference_name_casing <./casing/class_reference_name_casing.rst>`_

When referencing a class it must be written using the correct casing.
When referencing an internal class it must be written using the correct casing.
- `constant_case <./casing/constant_case.rst>`_

The PHP constants ``true``, ``false``, and ``null`` MUST be written using the correct casing.
Expand Down
2 changes: 1 addition & 1 deletion src/Fixer/Casing/ClassReferenceNameCasingFixer.php
Expand Up @@ -33,7 +33,7 @@ final class ClassReferenceNameCasingFixer extends AbstractFixer
public function getDefinition(): FixerDefinitionInterface
{
return new FixerDefinition(
'When referencing a class it must be written using the correct casing.',
'When referencing an internal class it must be written using the correct casing.',
[
new CodeSample("<?php\nthrow new \\exception();\n"),
]
Expand Down

0 comments on commit 37e2cbd

Please sign in to comment.