Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassReferenceNameCasingFixer - Update doc #6284

Merged
merged 1 commit into from Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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