Fix error message when starting cron daemon

Fixes #15009

Co-authored-by: @Art4
pull/15017/head
ne20002 2025-07-11 19:18:37 +02:00 zatwierdzone przez GitHub
rodzic c15868a24f
commit f3ae6ab9d1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -114,7 +114,7 @@ HELP;
$pidfile = $this->config->get('system', 'pidfile');
$daemonMode = $this->getArgument(0);
$foreground = $this->getOption(['f', 'foreground']) ?? false;
$foreground = (bool) $this->getOption(['f', 'foreground']) ?? false;
if (empty($daemonMode)) {
throw new CommandArgsException("Please use either 'start', 'stop' or 'status'");