diff --git a/src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php b/src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php index 52b9bf3dd91..29b10270787 100644 --- a/src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php +++ b/src/Sylius/Bundle/CoreBundle/Command/InstallCommand.php @@ -66,6 +66,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int $this->ensureDirectoryExistsAndIsWritable((string) $this->getContainer()->getParameter('kernel.cache_dir'), $output); $errored = false; + /** + * @var int $step + * @var array $command + */ foreach ($this->commands as $step => $command) { try { $outputStyle->newLine(); diff --git a/src/Sylius/Bundle/CoreBundle/Command/ShowAvailablePluginsCommand.php b/src/Sylius/Bundle/CoreBundle/Command/ShowAvailablePluginsCommand.php index b3a622194ef..347edf9f06e 100644 --- a/src/Sylius/Bundle/CoreBundle/Command/ShowAvailablePluginsCommand.php +++ b/src/Sylius/Bundle/CoreBundle/Command/ShowAvailablePluginsCommand.php @@ -30,7 +30,7 @@ final class ShowAvailablePluginsCommand extends Command * @phpstan-var ArrayCollection * @psalm-var ArrayCollection */ - private ?ArrayCollection $plugins = null; + private ArrayCollection $plugins; protected function configure(): void {