Skip to content

Commit

Permalink
Fix 'TypeError: SymfonyStyle::ask(): Argument #2 ($default) must be o…
Browse files Browse the repository at this point in the history
…f type ?string, int given' (#5690)
  • Loading branch information
DieterHolvoet committed Jul 6, 2023
1 parent 2dd7b48 commit 7aa30e3
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 @@ -335,7 +335,7 @@ protected function askCardinality(): int

$limit = FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED;
while ($cardinality === 'Limited' && $limit < 1) {
$limit = (int) $this->io()->ask('Allowed number of values', 1);
$limit = (int) $this->io()->ask('Allowed number of values', '1');
}

return $limit;
Expand Down

0 comments on commit 7aa30e3

Please sign in to comment.