diff options
Diffstat (limited to 'lib/Command/Updater/AfterUpdate.php')
-rw-r--r-- | lib/Command/Updater/AfterUpdate.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Command/Updater/AfterUpdate.php b/lib/Command/Updater/AfterUpdate.php index 62ceb2710..bedc8c9ff 100644 --- a/lib/Command/Updater/AfterUpdate.php +++ b/lib/Command/Updater/AfterUpdate.php @@ -35,6 +35,9 @@ class AfterUpdate extends Command $this->itemService = $itemService; } + /** + * @return void + */ protected function configure() { $this->setName('news:updater:after-update') @@ -44,7 +47,7 @@ class AfterUpdate extends Command protected function execute(InputInterface $input, OutputInterface $output): int { - $count = $input->getArgument('purge_count'); + $count = (int) $input->getArgument('purge_count'); $output->writeln($this->itemService->purgeOverThreshold($count)); |