We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fff706 commit f9558c1Copy full SHA for f9558c1
src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php
@@ -6,7 +6,6 @@
6
7
use Error;
8
use PhpParser\Node;
9
-use PhpParser\Node\Arg;
10
use PhpParser\Node\ArrayItem;
11
use PhpParser\Node\Expr;
12
use PhpParser\Node\Expr\Array_;
@@ -277,11 +276,6 @@ public function processNodes(
277
276
return;
278
}
279
280
- if ($node instanceof Arg) {
281
- $node->value->setAttribute(AttributeKey::SCOPE, $mutatingScope);
282
- return;
283
- }
284
-
285
if ($node instanceof Foreach_) {
286
// decorate value as well
287
$node->valueVar->setAttribute(AttributeKey::SCOPE, $mutatingScope);
0 commit comments