From 4503fb5d00c031e73a407a918278efb6c9a53c6e Mon Sep 17 00:00:00 2001 From: Dmytro Samchuk Date: Thu, 26 Dec 2019 14:54:52 +0200 Subject: [PATCH] Cast group option to array Safe array cast to be sure that we are consistent in interfaces on a way from InputInterface::getOption() to ::getFixtures(). Fixes #301 --- Command/LoadDataFixturesDoctrineCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/LoadDataFixturesDoctrineCommand.php b/Command/LoadDataFixturesDoctrineCommand.php index 87f76044..0489a6f4 100644 --- a/Command/LoadDataFixturesDoctrineCommand.php +++ b/Command/LoadDataFixturesDoctrineCommand.php @@ -105,7 +105,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $em->getConnection()->connect($input->getOption('shard')); } - $groups = $input->getOption('group'); + $groups = (array) $input->getOption('group'); $fixtures = $this->fixturesLoader->getFixtures($groups); if (! $fixtures) { $message = 'Could not find any fixture services to load';