1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Revert "Don’t complain about incorrectly cased builtin classes"

This reverts commit 20558c603988e8d28107539f524aba181a07f5d7.
This commit is contained in:
Matthew Brown 2017-01-18 00:23:17 -05:00
parent 20558c6039
commit b438e4c305

View File

@ -888,8 +888,7 @@ abstract class ClassLikeChecker extends SourceChecker implements StatementsSourc
return null;
}
if (ClassLikeChecker::isUserDefined($fq_class_name) &&
($class_exists && !ClassChecker::hasCorrectCasing($fq_class_name, $file_checker)) ||
if (($class_exists && !ClassChecker::hasCorrectCasing($fq_class_name, $file_checker)) ||
($interface_exists && !InterfaceChecker::hasCorrectCasing($fq_class_name, $file_checker))
) {
if (IssueBuffer::accepts(