Skip to content

Commit

Permalink
Fix empty fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
zarubaj authored and f3l1x committed Feb 23, 2022
1 parent 6e2cf14 commit 56accd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/LoadDataFixturesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 56accd2

Please sign in to comment.