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 44b744c commit 01737c5Copy full SHA for 01737c5
src/Analyser/NodeScopeResolver.php
@@ -688,6 +688,9 @@ private function processStmtNode(
688
array_merge($statementResult->getImpurePoints(), $functionImpurePoints),
689
$functionReflection,
690
), $functionScope, $storage);
691
+ if (!$scope->isInAnonymousFunction()) {
692
+ $this->processPendingFibers($storage);
693
+ }
694
} elseif ($stmt instanceof Node\Stmt\ClassMethod) {
695
$hasYield = false;
696
$throwPoints = [];
@@ -882,6 +885,9 @@ private function processStmtNode(
882
885
883
886
}
884
887
888
+ if (!$scope->getClassReflection()->isAnonymous() && !$scope->isInAnonymousFunction()) {
889
890
891
} elseif ($stmt instanceof Echo_) {
892
893
0 commit comments