Skip to content

Commit e33a9c4

Browse files
authored
Merge branch refs/heads/1.10.x into 1.11.x
2 parents 8efe415 + b735b66 commit e33a9c4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Parser/RemoveUnusedCodeByPhpVersionIdVisitor.php

+1-9
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ public function __construct(private string $phpVersionString)
1717

1818
public function enterNode(Node $node): Node|int|null
1919
{
20-
if ($node instanceof Node\Stmt\ClassLike) {
21-
return null;
22-
}
23-
if ($node instanceof Node\FunctionLike) {
24-
return null;
25-
}
26-
2720
if (!$node instanceof Node\Stmt\If_) {
2821
return null;
2922
}
@@ -53,8 +46,7 @@ public function enterNode(Node $node): Node|int|null
5346
$operator = $cond->getOperatorSigil();
5447
if ($operator === '===') {
5548
$operator = '==';
56-
}
57-
if ($operator === '!==') {
49+
} elseif ($operator === '!==') {
5850
$operator = '!=';
5951
}
6052

0 commit comments

Comments
 (0)