diff --git a/src/Type/TypeCombinator.php b/src/Type/TypeCombinator.php index 1b460f8b68..cd45719d5c 100644 --- a/src/Type/TypeCombinator.php +++ b/src/Type/TypeCombinator.php @@ -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; }