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

Remove ForbiddenNamedArgumentsRule as depends on case #78

Merged
merged 3 commits into from
Aug 22, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.