Skip to content

Commit 61f0957

Browse files
Fix
1 parent e58c470 commit 61f0957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Rules/Doctrine/ORM/EntityColumnRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ public function processNode(Node $node, Scope $scope): array
173173
}
174174

175175
if (count($enumTypes) > 0) {
176-
$writableToPropertyType = new UnionType($enumTypes);
177-
$writableToDatabaseType = new UnionType($enumTypes);
176+
$writableToPropertyType = TypeCombinator::union(...$enumTypes);
177+
$writableToDatabaseType = TypeCombinator::union(...$enumTypes);
178178
}
179179
}
180180
}

0 commit comments

Comments
 (0)