Skip to content

Commit e36967a

Browse files
committed
Doctrine: Fixtures: Command: fixed empty fixtures array option
1 parent 20cbf7c commit e36967a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Doctrine/Fixtures/Command/LoadDataFixturesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
102102

103103
$dirOrFile = $input->getOption('fixtures');
104104

105-
if (\is_string($dirOrFile) || \is_array($dirOrFile)) {
105+
if (\is_string($dirOrFile) || (\is_array($dirOrFile) && $dirOrFile !== [])) {
106106
$paths = \is_array($dirOrFile) ? $dirOrFile : [$dirOrFile];
107107
$this->loader->loadPaths($paths);
108108
} else {

0 commit comments

Comments
 (0)