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:
parent
f45014d403
commit
1df77a9f43
@ -1351,7 +1351,7 @@ class MethodCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expression\
|
||||
)) {
|
||||
// fall through
|
||||
}
|
||||
} else {
|
||||
} elseif ($can_memoize) {
|
||||
/** @psalm-suppress UndefinedPropertyAssignment */
|
||||
$stmt->pure = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user