We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8efe415 + b735b66 commit e33a9c4Copy full SHA for e33a9c4
src/Parser/RemoveUnusedCodeByPhpVersionIdVisitor.php
@@ -17,13 +17,6 @@ public function __construct(private string $phpVersionString)
17
18
public function enterNode(Node $node): Node|int|null
19
{
20
- if ($node instanceof Node\Stmt\ClassLike) {
21
- return null;
22
- }
23
- if ($node instanceof Node\FunctionLike) {
24
25
26
-
27
if (!$node instanceof Node\Stmt\If_) {
28
return null;
29
}
@@ -53,8 +46,7 @@ public function enterNode(Node $node): Node|int|null
53
46
$operator = $cond->getOperatorSigil();
54
47
if ($operator === '===') {
55
48
$operator = '==';
56
57
- if ($operator === '!==') {
49
+ } elseif ($operator === '!==') {
58
50
$operator = '!=';
59
51
60
52
0 commit comments