diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2021-01-08 23:26:10 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-01-12 13:29:08 +0100 |
commit | 67b6c4e1b0a9fa0138eb897f8a19e5b85d705c29 (patch) | |
tree | e1eeaea2f2e9bd41a9ca9437109f0fe2f3306295 /lib/Command/Updater/AfterUpdate.php | |
parent | e5d56f2c2e4542fca98194620a30605aa9e14437 (diff) |
Fix psalm issues
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
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)); |