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:
parent
53f0e6ea8b
commit
37e3e9d85a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user