diff --git a/src/Type/IntersectionType.php b/src/Type/IntersectionType.php index d41b79e95..0967c35ec 100644 --- a/src/Type/IntersectionType.php +++ b/src/Type/IntersectionType.php @@ -842,7 +842,7 @@ public function getEnumCases(): array foreach ($this->types as $type) { $oneType = []; foreach ($type->getEnumCases() as $enumCase) { - $oneType[md5($enumCase->describe(VerbosityLevel::typeOnly()))] = $enumCase; + $oneType[$enumCase->getClassName().'::'.$enumCase->getEnumCaseName()] = $enumCase; } $compare[] = $oneType; }