Skip to content

Commit

Permalink
Remove ForbiddenNamedArgumentsRule as depends on case
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 22, 2023
1 parent 8b902bc commit 546c505
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 199 deletions.
1 change: 0 additions & 1 deletion config/code-complexity-rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ rules:
- Symplify\PHPStanRules\Rules\Explicit\NoMixedCallableRule
- Symplify\PHPStanRules\Rules\Explicit\NoMixedPropertyFetcherRule
- Symplify\PHPStanRules\Rules\Explicit\NoMixedMethodCallerRule
- Symplify\PHPStanRules\Rules\Complexity\ForbiddenNamedArgumentsRule
- Symplify\PHPStanRules\Rules\PHPUnit\NoRightPHPUnitAssertScalarRule
- Symplify\PHPStanRules\Rules\Complexity\NoAbstractRule
- Symplify\PHPStanRules\Rules\Enum\RequireEnumDocBlockOnConstantListPassRule
Expand Down
24 changes: 1 addition & 23 deletions docs/rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 66 Rules Overview
# 64 Rules Overview

## AnnotateRegexClassConstWithRegexLinkRule

Expand Down Expand Up @@ -494,28 +494,6 @@ interface SomeInterface

<br>

## ForbiddenNamedArgumentsRule

Named arguments do not add any value here. Use normal arguments in the same order

- class: [`Symplify\PHPStanRules\Rules\Complexity\ForbiddenNamedArgumentsRule`](../src/Rules/Complexity/ForbiddenNamedArgumentsRule.php)

```php
return strlen(string: 'name');
```

:x:

<br>

```php
return strlen('name');
```

:+1:

<br>

## ForbiddenNodeRule

"%s" is forbidden to use
Expand Down
67 changes: 0 additions & 67 deletions src/Rules/Complexity/ForbiddenNamedArgumentsRule.php

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 546c505

Please sign in to comment.