Skip to content

Commit d7887b2

Browse files
MakeEntity: Removing parentheses in field types overview
Reason: In `date (or date_immutable)`, the second option looks inferior. So I changed it to look more equal: `date or date_immutable`
1 parent 5347173 commit d7887b2

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)