We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493b3c9 commit c3beeb4Copy full SHA for c3beeb4
src/StaticAnalysis/CodeUnitFindingVisitor.php
@@ -26,7 +26,6 @@
26
use PhpParser\Node\Stmt\Interface_;
27
use PhpParser\Node\Stmt\Trait_;
28
use PhpParser\Node\UnionType;
29
-use PhpParser\NodeAbstract;
30
use PhpParser\NodeTraverser;
31
use PhpParser\NodeVisitorAbstract;
32
use SebastianBergmann\Complexity\CyclomaticComplexityCalculatingVisitor;
@@ -316,10 +315,7 @@ private function intersectionTypeAsString(IntersectionType $node): string
316
315
return implode('&', $types);
317
}
318
319
- /**
320
- * @psalm-param Identifier|Name $node $node
321
- */
322
- private function typeAsString(NodeAbstract $node): string
+ private function typeAsString(Identifier|Name $node): string
323
{
324
if ($node instanceof Name) {
325
return $node->toCodeString();
0 commit comments