Skip to content

Commit

Permalink
5x Faster IntersectionType-> getEnumCases()
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Nov 30, 2024
1 parent 25d712e commit 04bbe5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/IntersectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 04bbe5e

Please sign in to comment.