1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix isMock check

This commit is contained in:
Matthew Brown 2016-04-12 16:22:25 -04:00
parent d2243c3317
commit c82a3a00a9

View File

@ -2319,7 +2319,7 @@ class StatementsChecker
$absolute_classes = explode('|', $return_type);
if (self::_isMock($return_type)) {
continue;
return true;
}
if (!is_a($return_type, $expected_type, true) && !is_a($return_type, $return_type, true)) {