1
0
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:
Matthew Brown 2016-07-25 12:03:21 -04:00
parent 37e3e9d85a
commit 08dd92ac00

View File

@ -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;