Skip to content

Commit

Permalink
Fix PHPStan ignored errors (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeniJaho authored Sep 18, 2023
1 parent 1e576f3 commit be68b68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ parameters:
message: '#Parameter \#1 \$array of function array_keys expects array, mixed given#'

# rector co-variant
- '#Parameter \#1 \$node \(PhpParser\\Node\\(.*?) of method RectorLaravel\\(.*?)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Core\\Contract\\Rector\\PhpRectorInterface\:\:refactor\(\)#'
- '#Parameter \#1 \$node (.*?) of method RectorLaravel\\(.*?)\:\:(refactor|refactorWithScope)\(\) should be contravariant with parameter \$node \(PhpParser\\Node\) of method Rector\\Core\\Contract\\Rector\\RectorInterface\:\:refactor\(\)#'

- '#Parameter \#1 \$className of method Rector\\Core\\Reflection\\ReflectionResolver\:\:resolveMethodReflection\(\) expects class\-string, string given#'
2 changes: 1 addition & 1 deletion src/Rector/StaticCall/RouteActionCallableRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getNodeTypes(): array
}

/**
* @param Node\Expr\MethodCall|StaticCall $node
* @param MethodCall|StaticCall $node
*/
public function refactor(Node $node): ?Node
{
Expand Down

0 comments on commit be68b68

Please sign in to comment.