From cf47cc6034008803cf4ce95dbefe1918186de50f Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Thu, 10 Jul 2025 23:47:25 +0200 Subject: [PATCH] Fix typo --- src/Type/TypeCombinator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }