From ecdc9a490e1cc1543c710a2598b85898c82e78ab Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:49:54 +0100 Subject: [PATCH] unrelated add missing if_false_assertions --- .../Expression/Call/Method/MethodCallPurityAnalyzer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallPurityAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallPurityAnalyzer.php index 0f26cd39186..42df5c819fc 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallPurityAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallPurityAnalyzer.php @@ -93,6 +93,7 @@ public static function analyze( if ($context->inside_conditional && !$method_storage->assertions && !$method_storage->if_true_assertions + && !$method_storage->if_false_assertions ) { $stmt->setAttribute('memoizable', true);