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:
parent
1aad830392
commit
dc0b2074a4
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user