Skip to content

Commit

Permalink
Fix 'TypeError: FieldCreateCommands::getExistingFieldStorageOptions()…
Browse files Browse the repository at this point in the history
…: Argument #3 ($showMachineNames) must be of type bool, string given' (#5759)
  • Loading branch information
DieterHolvoet authored Sep 14, 2023
1 parent fe2e71b commit 7395af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/field/FieldCreateCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ protected function askExistingFieldName(): ?string
{
$entityType = $this->input->getArgument('entityType');
$bundle = $this->input->getArgument('bundle');
$showMachineNames = $this->input->getOption('show-machine-names');
$showMachineNames = (bool) $this->input->getOption('show-machine-names');
$choices = $this->getExistingFieldStorageOptions($entityType, $bundle, $showMachineNames);

if (empty($choices)) {
Expand Down

0 comments on commit 7395af9

Please sign in to comment.