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 6ab3098 commit fa343a2Copy full SHA for fa343a2
src/StaticAnalysis/CodeUnitFindingVisitor.php
@@ -26,6 +26,7 @@
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;
@@ -330,7 +331,10 @@ private function intersectionTypeAsString(IntersectionType $node): string
330
331
return implode('&', $types);
332
}
333
- private function typeAsString(Identifier|Name $node): string
334
+ /**
335
+ * @psalm-param Identifier|Name $node $node
336
+ */
337
+ private function typeAsString(NodeAbstract $node): string
338
{
339
if ($node instanceof Name) {
340
return $node->toCodeString();
0 commit comments