Skip to content

Commit 96047f5

Browse files
committed
minor #1302 MakeEntity: Removing parentheses in field types overview (ThomasLandauer)
This PR was merged into the 1.0-dev branch. Discussion ---------- MakeEntity: Removing parentheses in field types overview Reason: In `date (or date_immutable)`, the second option looks inferior/exotic. So I changed it to look more equal: `date or date_immutable` Commits ------- d7887b2 MakeEntity: Removing parentheses in field types overview
2 parents 6910094 + d7887b2 commit 96047f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Maker/MakeEntity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,9 @@ private function printAvailableTypes(ConsoleStyle $io): void
486486
$line = sprintf(' * <comment>%s</comment>', $mainType);
487487

488488
if (\is_string($subTypes) && $subTypes) {
489-
$line .= sprintf(' (%s)', $subTypes);
489+
$line .= sprintf(' or %s', $subTypes);
490490
} elseif (\is_array($subTypes) && !empty($subTypes)) {
491-
$line .= sprintf(' (or %s)', implode(', ', array_map(
491+
$line .= sprintf(' or %s', implode(' or ', array_map(
492492
static fn ($subType) => sprintf('<comment>%s</comment>', $subType), $subTypes))
493493
);
494494

0 commit comments

Comments
 (0)