Skip to content

Commit

Permalink
Fixtures: fix error showing paths
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Dec 11, 2024
1 parent b1d59ab commit 3dba4a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/LoadDataFixturesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
// Load fixtures from given paths
if ($inputFixtures === []) {
$this->fixturesLoader->load();
$paths = $this->fixturesLoader->getPaths();
} else {
$this->fixturesLoader->loadPaths($inputFixtures);
$paths = $inputFixtures;
}

$fixtures = $this->fixturesLoader->getFixtures();
if ($fixtures === []) {
$paths = $this->fixturesLoader->getPaths();

if ($paths === []) {
throw new LogicalException('Could not find any fixtures to load.');
Expand Down

0 comments on commit 3dba4a3

Please sign in to comment.