Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Communication/Cli/ClearCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
->setDescription('Clear cache pools');
}

public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);

foreach ($input->getArgument('pools') as $poolName) {

Check warning on line 49 in src/Communication/Cli/ClearCacheCommand.php

View workflow job for this annotation

GitHub Actions / Tests 8.2 deps highest

MixedAssignment

src/Communication/Cli/ClearCacheCommand.php:49:50: MixedAssignment: Unable to determine the type that $poolName is being assigned to (see https://psalm.dev/032)
$io->comment(sprintf('Clearing cache pool: <info>%s</info>', $poolName));

Check warning on line 50 in src/Communication/Cli/ClearCacheCommand.php

View workflow job for this annotation

GitHub Actions / Tests 8.2 deps highest

MixedArgument

src/Communication/Cli/ClearCacheCommand.php:50:74: MixedArgument: Argument 2 of sprintf cannot be mixed, expecting float|int|object{__tostring()}|string (see https://psalm.dev/030)
$pool = $this->cacheFacade->getCachePsr6($poolName);

Check warning on line 51 in src/Communication/Cli/ClearCacheCommand.php

View workflow job for this annotation

GitHub Actions / Tests 8.2 deps highest

MixedArgument

src/Communication/Cli/ClearCacheCommand.php:51:54: MixedArgument: Argument 1 of Micro\Plugin\Cache\Facade\CacheFacadeInterface::getCachePsr6 cannot be mixed, expecting string (see https://psalm.dev/030)
$pool->clear();
}

Expand Down
Loading