File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments