1
0
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:
Andrei Petre 2020-06-19 18:51:08 +03:00 committed by GitHub
parent a7a23b4c1c
commit 6024fe4761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}