From a915ef585376cb4620ee2d3d1f4a4c2a7878a497 Mon Sep 17 00:00:00 2001 From: orklah Date: Sat, 12 Feb 2022 10:19:39 +0100 Subject: [PATCH] also remove a from_calculation flag which was scheduled for removal in Psalm 5 --- .../Expression/Call/Method/MethodCallReturnTypeFetcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php index 2da1db04209..d0be7c16d60 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/MethodCallReturnTypeFetcher.php @@ -108,7 +108,7 @@ public static function fetch( if ($premixin_method_id->fq_class_name === PDOException::class) { return Type::getString(); } else { - return Type::getInt(true); // TODO: Remove the flag in Psalm 5 + return Type::getInt(); } }