1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Only mark vars as reconcilable if they can be memoized

This commit is contained in:
Matthew Brown 2019-12-12 11:24:47 -05:00
parent f45014d403
commit 1df77a9f43

View File

@ -1351,7 +1351,7 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
)) {
// fall through
}
} else {
} elseif ($can_memoize) {
/** @psalm-suppress UndefinedPropertyAssignment */
$stmt->pure = true;
}