Skip to content

Commit

Permalink
Merge pull request #405 from m41r/master
Browse files Browse the repository at this point in the history
Stay in line with the `Symfony\Component\Console\Command:execute` function signatur to prevent exception
  • Loading branch information
lochmueller authored Feb 8, 2024
2 parents 73dba60 + 14a9852 commit d5d6536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/BoostQueueCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function configure(): void
*
* @see setCode()
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int

Check failure on line 65 in Classes/Command/BoostQueueCommand.php

View workflow job for this annotation

GitHub Actions / build (8.1, 12)

PHPDoc tag @return with type int|null is not subtype of native type int.

Check failure on line 65 in Classes/Command/BoostQueueCommand.php

View workflow job for this annotation

GitHub Actions / build (8.2, 12)

PHPDoc tag @return with type int|null is not subtype of native type int.
{
$io = new SymfonyStyle($input, $output);

Expand Down
2 changes: 1 addition & 1 deletion Classes/Command/FlushCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function configure(): void
*
* @see setCode()
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int

Check failure on line 47 in Classes/Command/FlushCacheCommand.php

View workflow job for this annotation

GitHub Actions / build (8.1, 12)

PHPDoc tag @return with type int|null is not subtype of native type int.

Check failure on line 47 in Classes/Command/FlushCacheCommand.php

View workflow job for this annotation

GitHub Actions / build (8.2, 12)

PHPDoc tag @return with type int|null is not subtype of native type int.
{
$cacheService = GeneralUtility::makeInstance(CacheService::class);
$cacheService->flush((bool) $input->getOption('force-boost-mode-flush'));
Expand Down

0 comments on commit d5d6536

Please sign in to comment.