From 6024fe4761c319be6a1286cb06bbb5d0023bfcb0 Mon Sep 17 00:00:00 2001 From: Andrei Petre <16165129+andrei-petre@users.noreply.github.com> Date: Fri, 19 Jun 2020 18:51:08 +0300 Subject: [PATCH] use original case in error messages when reporting undefined methods (#3615) --- .../Expression/Call/Method/AtomicMethodCallAnalyzer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php index 73cf10746..0c1a0bbdc 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php @@ -516,9 +516,9 @@ class AtomicMethodCallAnalyzer extends CallAnalyzer || !isset($class_storage->pseudo_methods[$method_name_lc]) ) { if ($is_interface) { - $result->non_existent_interface_method_ids[] = $intersection_method_id ?: $method_id; + $result->non_existent_interface_method_ids[] = $intersection_method_id ?: $cased_method_id; } else { - $result->non_existent_class_method_ids[] = $intersection_method_id ?: $method_id; + $result->non_existent_class_method_ids[] = $intersection_method_id ?: $cased_method_id; } }