Skip to content

Commit

Permalink
Remove NoMixedCallableRule, as handled by PHPStan - https://phpstan.o…
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 22, 2023
1 parent 8e54ff5 commit 5360efd
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 288 deletions.
1 change: 0 additions & 1 deletion config/code-complexity-rules.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
rules:
- Symplify\PHPStanRules\Rules\Explicit\NoMixedCallableRule
- Symplify\PHPStanRules\Rules\Explicit\NoMixedPropertyFetcherRule
- Symplify\PHPStanRules\Rules\Explicit\NoMixedMethodCallerRule
- Symplify\PHPStanRules\Rules\Complexity\ForbiddenNamedArgumentsRule
Expand Down
5 changes: 0 additions & 5 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ parameters:
- '#Class Symplify\\PHPStanRules\\(.*?)Rule implements generic interface PHPStan\\Rules\\Rule but does not specify its types\: TNodeType#'
- '#Method (.*?)::getCollectors\(\) return type with generic interface PHPStan\\Collectors\\Collector does not specify its types\: TNodeType, TValue#'

# invalid PHPStan type - it alwasy requires 2 types to traverse with callable
-
message: '#Callable callable\(PHPStan\\Type\\Type\)\: PHPStan\\Type\\Type invoked with 2 parameters, 1 required#'
path: src/Rules/Explicit/NoMixedCallableRule.php

- '#Parameter \#1 \$values of method Symplify\\PHPStanRules\\Rules\\Enum\\RequireUniqueEnumConstantRule\:\:filterDuplicatedValues\(\) expects array<int\|string>, array<bool\|float\|int\|string> given#'

- '#Class PHP_CodeSniffer\\Sniffs\\Sniff not found#'
Expand Down
102 changes: 0 additions & 102 deletions src/Rules/Explicit/NoMixedCallableRule.php

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions tests/Rules/Explicit/NoMixedCallableRule/Fixture/MixedCallable.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.

This file was deleted.

This file was deleted.

0 comments on commit 5360efd

Please sign in to comment.