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:
parent
6ab693ceeb
commit
e47198b326
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user