Skip to content

Commit

Permalink
feat: @Symfony:risky - add no_unreachable_default_argument_value (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Mar 11, 2024
1 parent ac2bbea commit 14a5ed1
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion doc/ruleSets/PhpCsFixerRisky.rst
Expand Up @@ -27,7 +27,6 @@ Rules

``['sets' => ['@all']]``

- `no_unreachable_default_argument_value <./../rules/function_notation/no_unreachable_default_argument_value.rst>`_
- `no_unset_on_property <./../rules/language_construct/no_unset_on_property.rst>`_
- `php_unit_data_provider_name <./../rules/php_unit/php_unit_data_provider_name.rst>`_
- `php_unit_data_provider_return_type <./../rules/php_unit/php_unit_data_provider_return_type.rst>`_
Expand Down
5 changes: 0 additions & 5 deletions doc/ruleSets/SymfonyRisky.rst
Expand Up @@ -60,8 +60,3 @@ Rules
- `string_length_to_empty <./../rules/string_notation/string_length_to_empty.rst>`_
- `string_line_ending <./../rules/string_notation/string_line_ending.rst>`_
- `ternary_to_elvis_operator <./../rules/operator/ternary_to_elvis_operator.rst>`_

Disabled rules
--------------

- `no_unreachable_default_argument_value <./../rules/function_notation/no_unreachable_default_argument_value.rst>`_
Expand Up @@ -40,6 +40,7 @@ The rule is part of the following rule sets:
- `@PHP80Migration:risky <./../../ruleSets/PHP80MigrationRisky.rst>`_
- `@PSR12:risky <./../../ruleSets/PSR12Risky.rst>`_
- `@PhpCsFixer:risky <./../../ruleSets/PhpCsFixerRisky.rst>`_
- `@Symfony:risky <./../../ruleSets/SymfonyRisky.rst>`_

References
----------
Expand Down
1 change: 0 additions & 1 deletion src/RuleSet/Sets/PhpCsFixerRiskySet.php
Expand Up @@ -47,7 +47,6 @@ public function getRules(): array
'@all',
],
],
'no_unreachable_default_argument_value' => true,
'no_unset_on_property' => true,
'php_unit_data_provider_name' => true,
'php_unit_data_provider_return_type' => true,
Expand Down
1 change: 0 additions & 1 deletion src/RuleSet/Sets/SymfonyRiskySet.php
Expand Up @@ -55,7 +55,6 @@ public function getRules(): array
'no_homoglyph_names' => true,
'no_php4_constructor' => true,
'no_unneeded_final_method' => true,
'no_unreachable_default_argument_value' => false,
'no_useless_sprintf' => true,
'non_printable_character' => true,
'ordered_traits' => true,
Expand Down

0 comments on commit 14a5ed1

Please sign in to comment.