mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
use original case in error messages when reporting undefined methods (#3615)
This commit is contained in:
parent
a7a23b4c1c
commit
6024fe4761
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user