Skip to content

Commit 4101283

Browse files
committed
Missing rememberConstructorScope in GeneratorScope
1 parent edfabec commit 4101283

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/Analyser/Generator/GeneratorScope.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,6 +1255,28 @@ private function rememberConstructorExpressions(array $currentExpressionTypes):
12551255
return $expressionTypes;
12561256
}
12571257

1258+
public function rememberConstructorScope(): self
1259+
{
1260+
return $this->scopeFactory->create(
1261+
$this->context,
1262+
$this->isDeclareStrictTypes(),
1263+
null,
1264+
$this->getNamespace(),
1265+
$this->rememberConstructorExpressions($this->expressionTypes),
1266+
$this->rememberConstructorExpressions($this->nativeExpressionTypes),
1267+
$this->conditionalExpressions,
1268+
$this->inClosureBindScopeClasses,
1269+
$this->anonymousFunctionReflection,
1270+
$this->inFirstLevelStatement,
1271+
[],
1272+
[],
1273+
$this->inFunctionCallsStack,
1274+
$this->afterExtractCall,
1275+
$this->parentScope,
1276+
$this->nativeTypesPromoted,
1277+
);
1278+
}
1279+
12581280
/**
12591281
* @api
12601282
* @param Type[] $phpDocParameterTypes

0 commit comments

Comments
 (0)