From be68b685bc9e77eaf9e05b7993db8ba2819fbf55 Mon Sep 17 00:00:00 2001 From: Geni Jaho Date: Mon, 18 Sep 2023 22:03:01 +0200 Subject: [PATCH] Fix PHPStan ignored errors (#136) --- phpstan.neon | 2 +- src/Rector/StaticCall/RouteActionCallableRector.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 372e80eb..852038fb 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -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#' diff --git a/src/Rector/StaticCall/RouteActionCallableRector.php b/src/Rector/StaticCall/RouteActionCallableRector.php index 0328e659..ee34e925 100644 --- a/src/Rector/StaticCall/RouteActionCallableRector.php +++ b/src/Rector/StaticCall/RouteActionCallableRector.php @@ -88,7 +88,7 @@ public function getNodeTypes(): array } /** - * @param Node\Expr\MethodCall|StaticCall $node + * @param MethodCall|StaticCall $node */ public function refactor(Node $node): ?Node {