diff --git a/src/bundle/Command/ConvertToImageAsset.php b/src/bundle/Command/ConvertToImageAsset.php index 1991258..9e2a478 100644 --- a/src/bundle/Command/ConvertToImageAsset.php +++ b/src/bundle/Command/ConvertToImageAsset.php @@ -129,8 +129,7 @@ protected function configure(): void ->addArgument( 'field_identifiers', InputArgument::IS_ARRAY | InputArgument::REQUIRED, - 'content_type_identifier/field_identifier', - [] + 'content_type_identifier/field_identifier' ); } @@ -151,7 +150,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int $this->repository->sudo( function () use ($input) { /** @var array $fieldIdentifiers */ - $fieldIdentifiers = $input->getArgument('field_identifiers'); + $fieldIdentifiers = (array) $input->getArgument('field_identifiers'); foreach ($fieldIdentifiers as $fieldIdentifier) { [$contentTypeIdentifier, $fieldIdentifier] = explode('/', $fieldIdentifier);