diff --git a/Fixture/Factory/CatalogPromotionExampleFactory.php b/Fixture/Factory/CatalogPromotionExampleFactory.php index ce43f2b99..604f29903 100644 --- a/Fixture/Factory/CatalogPromotionExampleFactory.php +++ b/Fixture/Factory/CatalogPromotionExampleFactory.php @@ -132,21 +132,7 @@ protected function configureOptions(OptionsResolver $resolver): void ->setAllowedTypes('channels', 'array') ->setNormalizer('channels', LazyOption::findBy($this->channelRepository, 'code')) ->setDefined('rules') - ->setNormalizer('rules', function (Options $options, array $rules): array { - if (empty($rules)) { - return [[]]; - } - - return $rules; - }) ->setDefined('actions') - ->setNormalizer('actions', function (Options $options, array $actions): array { - if (empty($actions)) { - return [[]]; - } - - return $actions; - }) ; }