diff --git a/rules/CodeQuality/Rector/ClassMethod/ResponseReturnTypeControllerActionRector.php b/rules/CodeQuality/Rector/ClassMethod/ResponseReturnTypeControllerActionRector.php index f1a58178..160d191d 100644 --- a/rules/CodeQuality/Rector/ClassMethod/ResponseReturnTypeControllerActionRector.php +++ b/rules/CodeQuality/Rector/ClassMethod/ResponseReturnTypeControllerActionRector.php @@ -11,7 +11,6 @@ use PhpParser\Node\Expr\Variable; use PhpParser\Node\Identifier; use PhpParser\Node\Name\FullyQualified; -use PhpParser\Node\NullableType; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Return_; use PHPStan\Type\ObjectType; diff --git a/rules/Symfony30/Rector/ClassMethod/FormTypeGetParentRector.php b/rules/Symfony30/Rector/ClassMethod/FormTypeGetParentRector.php index 1f7e52c1..2ca14099 100644 --- a/rules/Symfony30/Rector/ClassMethod/FormTypeGetParentRector.php +++ b/rules/Symfony30/Rector/ClassMethod/FormTypeGetParentRector.php @@ -139,7 +139,7 @@ private function isClassAndMethodMatch(Class_ $class, ClassMethod $classMethod): } if ($this->isName($classMethod->name, 'getExtendedType')) { - return $this->isObjectType($classMethod, new ObjectType('Symfony\Component\Form\AbstractTypeExtension')); + return $this->isObjectType($class, new ObjectType('Symfony\Component\Form\AbstractTypeExtension')); } return false;