Skip to content

Commit

Permalink
revert 944673f
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed May 10, 2024
1 parent 1ef2c20 commit b533ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Type/TypeCombinator.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ public static function union(Type ...$types): Type
if ($types[$i] instanceof StringType && !$types[$i] instanceof ClassStringType) {
$hasGenericScalarTypes[ConstantStringType::class] = true;
}
if ($types[$i] instanceof EnumCaseObjectType) {
$enumCaseTypes[$types[$i]->describe(VerbosityLevel::cache())] = $types[$i];
$enumCases = $types[$i]->getEnumCases();
if (count($enumCases) === 1) {

unset($types[$i]);
continue;
Expand Down

0 comments on commit b533ced

Please sign in to comment.