Skip to content

Commit c3beeb4

Browse files
Revert "Make this compatible with PHP 7"
This reverts commit fa343a2.
1 parent 493b3c9 commit c3beeb4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/StaticAnalysis/CodeUnitFindingVisitor.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
use PhpParser\Node\Stmt\Interface_;
2727
use PhpParser\Node\Stmt\Trait_;
2828
use PhpParser\Node\UnionType;
29-
use PhpParser\NodeAbstract;
3029
use PhpParser\NodeTraverser;
3130
use PhpParser\NodeVisitorAbstract;
3231
use SebastianBergmann\Complexity\CyclomaticComplexityCalculatingVisitor;
@@ -316,10 +315,7 @@ private function intersectionTypeAsString(IntersectionType $node): string
316315
return implode('&', $types);
317316
}
318317

319-
/**
320-
* @psalm-param Identifier|Name $node $node
321-
*/
322-
private function typeAsString(NodeAbstract $node): string
318+
private function typeAsString(Identifier|Name $node): string
323319
{
324320
if ($node instanceof Name) {
325321
return $node->toCodeString();

0 commit comments

Comments
 (0)