Skip to content

Commit

Permalink
Fix TypeError on ProgressBar
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan2Shrek committed Mar 27, 2024
1 parent 0d9e4eb commit 8adc869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Helper/ProgressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8adc869

Please sign in to comment.