Skip to content

Commit b24c50f

Browse files
Review
1 parent 27a9b38 commit b24c50f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Type/IntersectionType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,10 +1029,10 @@ public function toArray(): Type
10291029
public function toArrayKey(): Type
10301030
{
10311031
if ($this->isNumericString()->yes()) {
1032-
return new UnionType([
1032+
return TypeCombinator::union(
10331033
new IntegerType(),
10341034
$this,
1035-
]);
1035+
);
10361036
}
10371037

10381038
if ($this->isString()->yes()) {

0 commit comments

Comments
 (0)