Skip to content

Commit

Permalink
Merge branch 'main' into tv-named-args
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba authored Aug 22, 2023
2 parents 546c505 + 8e54ff5 commit b3f01ba
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 241 deletions.
1 change: 0 additions & 1 deletion config/static-rules.neon
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ rules:
- Symplify\PHPStanRules\Rules\NarrowType\NoReturnFalseInNonBoolClassMethodRule

- Symplify\PHPStanRules\Rules\Complexity\ForbiddenArrayMethodCallRule
- Symplify\PHPStanRules\Rules\ForbiddenSpreadOperatorRule
- Symplify\PHPStanRules\Rules\CheckRequiredInterfaceInContractNamespaceRule
- Symplify\PHPStanRules\Rules\NoEmptyClassRule

Expand Down
5 changes: 1 addition & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
- packages
- packages-tests

reportUnmatchedIgnoredErrors: false
# reportUnmatchedIgnoredErrors: false

excludePaths:
# parallel
Expand Down Expand Up @@ -36,9 +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#'

# child type
- '#Parameter \#1 \$node of method Symplify\\PHPStanRules\\Rules\\ForbiddenSpreadOperatorRule\:\:hasVariadicParam\(\) expects PhpParser\\Node\\Expr\\ArrowFunction\|PhpParser\\Node\\Expr\\Closure\|PhpParser\\Node\\Stmt\\ClassMethod\|PhpParser\\Node\\Stmt\\Function_, PhpParser\\Node\\Expr\\ArrowFunction\|PhpParser\\Node\\Expr\\Closure\|\(PhpParser\\Node\\Expr\\FuncCall&PhpParser\\Node\\FunctionLike\)\|\(PhpParser\\Node\\Expr\\MethodCall&PhpParser\\Node\\FunctionLike\)\|\(PhpParser\\Node\\Expr\\StaticCall&PhpParser\\Node\\FunctionLike\)\|PhpParser\\Node\\Stmt\\ClassMethod\|PhpParser\\Node\\Stmt\\Function_ given#'

# 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#'
Expand Down
107 changes: 0 additions & 107 deletions src/Rules/ForbiddenSpreadOperatorRule.php

This file was deleted.

This file was deleted.

This file was deleted.

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

0 comments on commit b3f01ba

Please sign in to comment.