Skip to content

Commit

Permalink
Fix type error if no response given to start deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-redfern committed Jan 6, 2022
1 parent 30ef40e commit 69f0c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/Services/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ private function handleServiceDependencies(Service $service): void
$this->tools()->input()->setOption('with-deps', $deps);
}

if (strtolower(trim($deps)) === 'y') {
if (!is_null($deps) && strtolower(trim($deps)) === 'y') {
$service->dependencies()->each(fn ($name) => $this->startService($name));
}
}
Expand Down

0 comments on commit 69f0c79

Please sign in to comment.