diff --git a/src/Command/ScanAllPackagesCommand.php b/src/Command/ScanAllPackagesCommand.php index 0a15c740..11d23fde 100644 --- a/src/Command/ScanAllPackagesCommand.php +++ b/src/Command/ScanAllPackagesCommand.php @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $progressBar = new ProgressBar($output, $count); $progressBar->start(); - for ($offset = 0; $offset <= $count; $offset = ($offset + 1) * $limit) { + for ($offset = 0; $offset < $count; $offset += $limit) { foreach ($this->packageQuery->getAllSynchronized($limit, $offset) as $item) { $this->scanner->scan( $this->packageRepository->getById(Uuid::fromString($item->id()))