Fix phpstan error

This commit is contained in:
Anton Medvedev 2021-11-21 22:41:56 +01:00
parent c1bef57396
commit 47b9850947

View File

@ -127,8 +127,10 @@ class MainCommand extends SelectCommand
$this->validateConfig();
$this->deployer->master->connect($hosts);
$this->deployer->server->start();
foreach ($skippedTasks as $taskName) {
$output->writeln("<fg=yellow;options=bold>skip</> $taskName");
if (!empty($skippedTasks)) {
foreach ($skippedTasks as $taskName) {
$output->writeln("<fg=yellow;options=bold>skip</> $taskName");
}
}
}
$exitCode = $this->deployer->master->run($tasks, $hosts, $plan);