Skip to content

Commit

Permalink
Fix: Argument 1 passed must be of the type array or null, string give…
Browse files Browse the repository at this point in the history
…n when running seeder for a specific content type
  • Loading branch information
ticktackk committed Feb 9, 2019
1 parent 6fc95a6 commit 548a684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/src/addons/TickTackk/Seeder/Cli/Command/Seeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function execute(InputInterface $input, OutputInterface $output) : ? i
/** @var \TickTackk\Seeder\Repository\Seed $seedRepo */
$seedRepo = \XF::app()->repository('TickTackk\Seeder:Seed');
$contentType = $input->getOption('content-type');
$orderedSeeds = $seedRepo->getOrderedSeeds(!empty($contentType) ? $contentType : null);
$orderedSeeds = $seedRepo->getOrderedSeeds(!empty($contentType) ? [$contentType] : null);

$this->setupAndRunJob('tckSeeder' . (!empty($contentType) ? '_' . $contentType : ''), 'TickTackk\Seeder:Seed', [
'seeds' => $orderedSeeds
Expand Down

0 comments on commit 548a684

Please sign in to comment.