Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Type/TypeCombinator.php
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ public static function intersect(Type ...$types): Type
}

usort($types, static function (Type $a, Type $b): int {
// move subtractables with subtracts before those without to avoid loosing them in the union logic
// move subtractables with subtracts before those without to avoid losing them in the union logic
if ($a instanceof SubtractableType && $a->getSubtractedType() !== null) {
return -1;
}
Expand Down
Loading