We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc58ff commit 2854b6dCopy full SHA for 2854b6d
1 file changed
src/Command/CreateEnumCommand.php
@@ -59,7 +59,7 @@ public function __invoke(InputInterface $input, OutputInterface $output): int
59
$className .= ucfirst($attributes['elements'][0]);
60
}
61
62
- $defaultCase = $this->getCaseName($attributes['defaultValue'] ?? '');
+ $defaultCase = $this->getCaseName((string) $attributes['defaultValue'] ?? '');
63
foreach ($attributes['choices'] as $option) {
64
$caseName = $this->getCaseName($option);
65
$default = $caseName === $defaultCase ? ' // default' : '';
0 commit comments