From 5dd9c1164d75d4324e2b0282e78675818b1324f6 Mon Sep 17 00:00:00 2001 From: robchett Date: Sun, 8 Oct 2023 20:50:47 +0100 Subject: [PATCH] Hotfix for psalm warnings --- .../Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php index afa5692c2d1..2c6a34df44b 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php @@ -625,6 +625,11 @@ private static function analyzeOperands( return null; } } + /** + * @var Atomic $left_type_part + * @var Atomic $right_type_part + * // Todo remove this hint reset after fixing #10267 + */ if (($left_type_part instanceof TNamedObject && strtolower($left_type_part->value) === 'gmp') || ($right_type_part instanceof TNamedObject && strtolower($right_type_part->value) === 'gmp')