Skip to content

Commit 0808ecc

Browse files
DieterHolvoetweitzman
authored andcommitted
Remove unnecessary _none option from allowed formats list (#6420)
I think it has become redundant since switching to laravel/prompts. Either way we have to remove it, since it causes issues when this option is selected, since _none is not an actual text format.
1 parent e42aec7 commit 0808ecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/field/FieldTextHooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ protected function hasAllowedFormats(?string $fieldType = null): bool
108108
protected function askAllowedFormats(): array
109109
{
110110
$formats = filter_formats();
111-
$choices = ['_none' => '- None -'];
111+
$choices = [];
112112

113113
foreach ($formats as $format) {
114114
$choices[$format->id()] = $format->label();
115115
}
116116

117-
return $this->io()->multiselect('Allowed formats', $choices, ['_none']);
117+
return $this->io()->multiselect('Allowed formats', $choices);
118118
}
119119
}

0 commit comments

Comments
 (0)