Skip to content

Commit 491185d

Browse files
Simplify
1 parent 7274ada commit 491185d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Rules/Doctrine/ORM/EntityColumnRule.php

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

174174
if (count($enumTypes) > 0) {
175-
$writableToPropertyType = TypeCombinator::union(...$enumTypes);
176-
$writableToDatabaseType = TypeCombinator::union(...$enumTypes);
175+
$unionType = TypeCombinator::union(...$enumTypes);
176+
$writableToPropertyType = $unionType;
177+
$writableToDatabaseType = $unionType;
177178
}
178179
}
179180
}

0 commit comments

Comments
 (0)