diff --git a/src/Type/TypeCombinator.php b/src/Type/TypeCombinator.php index e0a6767b98..0b873eb421 100644 --- a/src/Type/TypeCombinator.php +++ b/src/Type/TypeCombinator.php @@ -35,7 +35,6 @@ use function count; use function get_class; use function is_int; -use function md5; use function sprintf; use function usort; use const PHP_INT_MAX; @@ -197,7 +196,7 @@ public static function union(Type ...$types): Type for ($i = 0; $i < $typesCount; $i++) { if ($types[$i]->isConstantScalarValue()->yes()) { $type = $types[$i]; - $scalarTypes[get_class($type)][md5($type->describe(VerbosityLevel::cache()))] = $type; + $scalarTypes[get_class($type)][$type->describe(VerbosityLevel::cache())] = $type; unset($types[$i]); continue; }