From 56accd28d40e6be410d8ebb147d60c45e257eef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Z=C3=A1ruba?= Date: Wed, 23 Feb 2022 00:24:10 +0100 Subject: [PATCH] Fix empty fixtures --- src/Command/LoadDataFixturesCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/LoadDataFixturesCommand.php b/src/Command/LoadDataFixturesCommand.php index 271d9a0..73bed45 100644 --- a/src/Command/LoadDataFixturesCommand.php +++ b/src/Command/LoadDataFixturesCommand.php @@ -108,7 +108,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } $dirOrFile = $input->getOption('fixtures'); - if ($dirOrFile !== null && $dirOrFile !== '') { + if ($dirOrFile !== null && $dirOrFile !== '' && !(is_array($dirOrFile) && count($dirOrFile) === 0)) { $paths = is_array($dirOrFile) ? $dirOrFile : [$dirOrFile]; $this->loader->loadPaths($paths); } else {