1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Protect implements checks

This commit is contained in:
Matthew Brown 2016-07-25 09:23:38 -04:00
parent 53f0e6ea8b
commit 37e3e9d85a

View File

@ -460,9 +460,11 @@ class ClassChecker implements StatementsSource
return false;
}
if (in_array($absolute_class, self::$SPECIAL_TYPES) ||
in_array($interface, self::$SPECIAL_TYPES)
) {
if (!ClassChecker::classExists($absolute_class)) {
return false;
}
if (in_array($interface, self::$SPECIAL_TYPES)) {
return false;
}