Skip to content

Commit 222676e

Browse files
committed
AlwaysRememberedExpr - use getNativeExprType
1 parent e1e8302 commit 222676e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ private function resolveType(string $exprString, Expr $node): Type
843843
}
844844

845845
if ($node instanceof AlwaysRememberedExpr) {
846-
return $node->getExprType();
846+
return $this->nativeTypesPromoted ? $node->getNativeExprType() : $node->getExprType();
847847
}
848848

849849
if ($node instanceof Expr\BinaryOp\Smaller) {

0 commit comments

Comments
 (0)