diff --git a/rules/dead-code/src/NodeAnalyzer/DataProviderMethodNamesResolver.php b/rules/dead-code/src/NodeAnalyzer/DataProviderMethodNamesResolver.php index 1ff6b7ffd9d3..a444eacefc5d 100644 --- a/rules/dead-code/src/NodeAnalyzer/DataProviderMethodNamesResolver.php +++ b/rules/dead-code/src/NodeAnalyzer/DataProviderMethodNamesResolver.php @@ -70,7 +70,6 @@ private function resolvePHPUnitDataProviderTagValueNodes(Class_ $class): array foreach ($class->getMethods() as $classMethod) { $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($classMethod); - /** @var PHPUnitDataProviderTagValueNode[] $phpunitDataProviderTagValueNodes */ $foundPHPUnitDataProviderTagValueNodes = $phpDocInfo->findAllByType(PHPUnitDataProviderTagValueNode::class); $phpunitDataProviderTagValueNodes = array_merge( $phpunitDataProviderTagValueNodes,