Skip to content

Commit

Permalink
use original case in error messages when reporting undefined methods
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-petre committed Jun 18, 2020
1 parent 49f0592 commit 0c9bc32
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,9 @@ public static function analyze(
|| !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;
}
}

Expand Down

0 comments on commit 0c9bc32

Please sign in to comment.