Skip to content

Commit 418647d

Browse files
committed
Update MutatingScope.php
1 parent 26da905 commit 418647d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2954,7 +2954,7 @@ public function popInFunctionCall(): self
29542954
$stack = $this->inFunctionCallsStack;
29552955
array_pop($stack);
29562956

2957-
return $this->scopeFactory->create(
2957+
$parentScope = $this->scopeFactory->create(
29582958
$this->context,
29592959
$this->isDeclareStrictTypes(),
29602960
$this->getFunction(),
@@ -2972,6 +2972,8 @@ public function popInFunctionCall(): self
29722972
$this->parentScope,
29732973
$this->nativeTypesPromoted,
29742974
);
2975+
$parentScope->resolvedTypes = $this->resolvedTypes;
2976+
return $parentScope;
29752977
}
29762978

29772979
/** @api */

0 commit comments

Comments
 (0)