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 9fadf54 commit f180591Copy full SHA for f180591
src/Analyser/Fiber/FiberScope.php
@@ -123,6 +123,14 @@ public function filterByFalseyValue(Expr $expr): self
123
124
private function preprocessScope(MutatingScope $scope): Scope
125
{
126
+ if ($scope->getAnonymousFunctionReflection() !== $this->getAnonymousFunctionReflection()) {
127
+ return $this->toMutatingScope();
128
+ }
129
+
130
+ if ($scope->getFunction() !== $this->getFunction()) {
131
132
133
134
if ($this->nativeTypesPromoted) {
135
$scope = $scope->doNotTreatPhpDocTypesAsCertain();
136
}
0 commit comments