Skip to content

Commit

Permalink
use processNodes() over processNodeStmts()
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Oct 30, 2021
1 parent 8a54687 commit 4398a97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function processNodes(array $stmts, SmartFileInfo $smartFileInfo): array

$traitScope = $traitScope->enterTrait($traitReflectionClass);

$this->nodeScopeResolver->processStmtNodes($node, $node->stmts, $traitScope, $nodeCallback);
$this->nodeScopeResolver->processNodes($node->stmts, $traitScope, $nodeCallback);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ parameters:
- '#Parameter "\w+" cannot have default value#'

# scope & mutating scope mish-mash
- '#Parameter \#4 \$nodeCallback of method PHPStan\\Analyser\\NodeScopeResolver\:\:processStmtNodes\(\) expects callable\(PhpParser\\Node, PHPStan\\Analyser\\Scope\)\: void, Closure\(PhpParser\\Node, PHPStan\\Analyser\\MutatingScope\)\: void given#'
- '#Parameter \#3 \$nodeCallback of method PHPStan\\Analyser\\NodeScopeResolver\:\:processNodes\(\) expects callable\(PhpParser\\Node, PHPStan\\Analyser\\Scope\)\: void, Closure\(PhpParser\\Node, PHPStan\\Analyser\\MutatingScope\)\: void given#'

# share configuration to avoid duplication in 5 rules
-
Expand Down

0 comments on commit 4398a97

Please sign in to comment.