Skip to content

Commit f9558c1

Browse files
committed
clean up
1 parent 5fff706 commit f9558c1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Error;
88
use PhpParser\Node;
9-
use PhpParser\Node\Arg;
109
use PhpParser\Node\ArrayItem;
1110
use PhpParser\Node\Expr;
1211
use PhpParser\Node\Expr\Array_;
@@ -277,11 +276,6 @@ public function processNodes(
277276
return;
278277
}
279278

280-
if ($node instanceof Arg) {
281-
$node->value->setAttribute(AttributeKey::SCOPE, $mutatingScope);
282-
return;
283-
}
284-
285279
if ($node instanceof Foreach_) {
286280
// decorate value as well
287281
$node->valueVar->setAttribute(AttributeKey::SCOPE, $mutatingScope);

0 commit comments

Comments
 (0)