Skip to content

Commit 47b9850

Browse files
committed
Fix phpstan error
1 parent c1bef57 commit 47b9850

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Command/MainCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ protected function execute(Input $input, Output $output): int
127127
$this->validateConfig();
128128
$this->deployer->master->connect($hosts);
129129
$this->deployer->server->start();
130-
foreach ($skippedTasks as $taskName) {
131-
$output->writeln("<fg=yellow;options=bold>skip</> $taskName");
130+
if (!empty($skippedTasks)) {
131+
foreach ($skippedTasks as $taskName) {
132+
$output->writeln("<fg=yellow;options=bold>skip</> $taskName");
133+
}
132134
}
133135
}
134136
$exitCode = $this->deployer->master->run($tasks, $hosts, $plan);

0 commit comments

Comments
 (0)