diff --git a/src/Commands/field/FieldCreateCommands.php b/src/Commands/field/FieldCreateCommands.php index 1dc687c8e4..8f7ff3778f 100644 --- a/src/Commands/field/FieldCreateCommands.php +++ b/src/Commands/field/FieldCreateCommands.php @@ -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;