File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3728,7 +3728,8 @@ private function enterAnonymousFunctionWithoutReflection(
37283728 $ nativeTypes [$ paramExprString ] = ExpressionTypeHolder::createYes ($ use ->var , $ variableNativeType );
37293729 }
37303730
3731- foreach ($ this ->invalidateStaticExpressions ($ this ->expressionTypes ) as $ exprString => $ typeHolder ) {
3731+ $ nonStaticExpressions = $ this ->invalidateStaticExpressions ($ this ->expressionTypes );
3732+ foreach ($ nonStaticExpressions as $ exprString => $ typeHolder ) {
37323733 $ expr = $ typeHolder ->getExpr ();
37333734
37343735 if ($ expr instanceof Variable) {
@@ -3758,7 +3759,7 @@ private function enterAnonymousFunctionWithoutReflection(
37583759 $ nativeTypes ['$this ' ] = ExpressionTypeHolder::createYes ($ node , $ this ->getNativeType ($ node ));
37593760
37603761 if ($ this ->phpVersion ->supportsReadOnlyProperties ()) {
3761- foreach ($ this -> invalidateStaticExpressions ( $ this -> expressionTypes ) as $ exprString => $ typeHolder ) {
3762+ foreach ($ nonStaticExpressions as $ exprString => $ typeHolder ) {
37623763 $ expr = $ typeHolder ->getExpr ();
37633764
37643765 if (
You can’t perform that action at this time.
0 commit comments