1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Fix casing of duplicate interface method check

This commit is contained in:
Matt Brown 2018-01-26 12:00:02 -05:00
parent 1320b6dd54
commit b333e90fee

View File

@ -820,8 +820,8 @@ class ClassChecker extends ClassLikeChecker
$self_class
);
if (!$return_type && $class_storage->interface_method_ids) {
foreach ($class_storage->interface_method_ids[$stmt->name] as $interface_method_id) {
if (!$return_type && isset($class_storage->interface_method_ids[strtolower($stmt->name)])) {
foreach ($class_storage->interface_method_ids[strtolower($stmt->name)] as $interface_method_id) {
list($interface_class) = explode('::', $interface_method_id);
$interface_return_type = MethodChecker::getMethodReturnType(