1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

test without weird function

This commit is contained in:
orklah 2021-10-19 22:12:20 +02:00
parent 1aad830392
commit dc0b2074a4

View File

@ -589,14 +589,6 @@ class Context
break;
}
// empty and !empty are not definitive for arrays and scalar types
if (($type === '!falsy' || $type === 'falsy') &&
($new_type->hasArray() || $new_type->hasPossiblyNumericType())
) {
$type_changed = true;
break;
}
$result_type = AssertionReconciler::reconcile(
$type,
clone $new_type,