Skip to content

Commit 26adf1e

Browse files
committed
1 parent 3357f95 commit 26adf1e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rules/DeadCode/Rector/Node/RemoveNonExistingVarAnnotationRector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ public function refactor(Node $node): ?Node
128128
continue;
129129
}
130130

131+
if ($stmt instanceof Static_) {
132+
foreach ($stmt->vars as $staticVar) {
133+
$extractValues[] = $this->getName($staticVar->var);
134+
}
135+
}
136+
131137
if ($this->shouldSkip($node, $key, $stmt, $extractValues)) {
132138
continue;
133139
}

0 commit comments

Comments
 (0)