mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Add numeric type support to properties
This commit is contained in:
parent
37e3e9d85a
commit
08dd92ac00
@ -84,6 +84,10 @@ class Union extends Type
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($parent->hasType('numeric') && $type->isNumericType()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($type->value === 'false' && $parent->hasType('bool')) {
|
if ($type->value === 'false' && $parent->hasType('bool')) {
|
||||||
// this is fine
|
// this is fine
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user