From d7887b2a19818343b49e387c34d7271e6d66d0ae Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Thu, 27 Apr 2023 18:47:38 +0200 Subject: [PATCH] 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` --- src/Maker/MakeEntity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Maker/MakeEntity.php b/src/Maker/MakeEntity.php index b81c0b88b..193a57125 100644 --- a/src/Maker/MakeEntity.php +++ b/src/Maker/MakeEntity.php @@ -486,9 +486,9 @@ private function printAvailableTypes(ConsoleStyle $io): void $line = sprintf(' * %s', $mainType); if (\is_string($subTypes) && $subTypes) { - $line .= sprintf(' (%s)', $subTypes); + $line .= sprintf(' or %s', $subTypes); } elseif (\is_array($subTypes) && !empty($subTypes)) { - $line .= sprintf(' (or %s)', implode(', ', array_map( + $line .= sprintf(' or %s', implode(' or ', array_map( static fn ($subType) => sprintf('%s', $subType), $subTypes)) );