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

Add workaround for Psalm checking itself on PHP 5.6

This commit is contained in:
Matthew Brown 2017-10-07 11:38:51 -04:00
parent 6ab693ceeb
commit e47198b326

View File

@ -773,6 +773,13 @@ class TypeChecker
return true;
}
// PHP 5.6 doesn't support this natively, so this introduces a bug *just* when checking PHP 5.6 code
if ($input_type_part->value === 'ReflectionType') {
$to_string_cast = true;
return true;
}
}
if ($container_type_part instanceof TCallable &&