diff --git a/Helper/ProgressBar.php b/Helper/ProgressBar.php index f4eec051c..b406292b4 100644 --- a/Helper/ProgressBar.php +++ b/Helper/ProgressBar.php @@ -183,9 +183,9 @@ public function setMessage(string $message, string $name = 'message'): void $this->messages[$name] = $message; } - public function getMessage(string $name = 'message'): string + public function getMessage(string $name = 'message'): ?string { - return $this->messages[$name]; + return $this->messages[$name] ?? null; } public function getStartTime(): int