mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +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;
|
||||
}
|
||||
|
||||
if ($parent->hasType('numeric') && $type->isNumericType()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($type->value === 'false' && $parent->hasType('bool')) {
|
||||
// this is fine
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user