Skip to content

Commit 33b6877

Browse files
authored
Merge pull request #17 from magento-atwix-pyrrans/AC-3550
[Pyrrans] AC-3550: Fixes for compatibility with Symfony 5.4
2 parents 18d762f + e3619a7 commit 33b6877

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Console/Command/CacheEvict.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\CloudComponents\Console\Command;
99

1010
use Magento\CloudComponents\Model\Cache\Evictor;
11+
use Magento\Framework\Console\Cli;
1112
use Symfony\Component\Console\Command\Command;
1213
use Symfony\Component\Console\Input\InputInterface;
1314
use Symfony\Component\Console\Output\OutputInterface;
@@ -33,17 +34,17 @@ public function __construct(Evictor $evictor)
3334
}
3435

3536
/**
36-
* @inheritDoc
37+
* @inheritdoc
3738
*/
3839
protected function configure()
3940
{
4041
$this->setDescription('Evicts unused keys by performing scan command');
4142
}
4243

4344
/**
44-
* @inheritDoc
45+
* @inheritdoc
4546
*/
46-
public function execute(InputInterface $input, OutputInterface $output): void
47+
public function execute(InputInterface $input, OutputInterface $output): int
4748
{
4849
$output->writeln('Begin scanning of cache keys');
4950

@@ -53,5 +54,7 @@ public function execute(InputInterface $input, OutputInterface $output): void
5354
'Total scanned keys: %s',
5455
$count
5556
));
57+
58+
return Cli::RETURN_SUCCESS;
5659
}
5760
}

Console/Command/ConfigShowDefaultUrlCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function configure()
5656
/**
5757
* Returns base url for default store of default website
5858
*
59-
* {@inheritdoc}
59+
* @inheritdoc
6060
*/
6161
protected function execute(InputInterface $input, OutputInterface $output)
6262
{

Console/Command/ConfigShowEntityUrlsCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function configure()
119119
/**
120120
* @param InputInterface $input
121121
* @param OutputInterface $output
122-
* @return int|null
122+
* @return int
123123
*/
124124
protected function execute(InputInterface $input, OutputInterface $output)
125125
{

Console/Command/ConfigShowStoreUrlCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function configure()
7272
/**
7373
* Returns store url or all store urls if store id wasn't provided
7474
*
75-
* {@inheritdoc}
75+
* @inheritdoc
7676
*/
7777
protected function execute(InputInterface $input, OutputInterface $output)
7878
{

0 commit comments

Comments
 (0)