Skip to content

Commit

Permalink
fix: add fallback for config values
Browse files Browse the repository at this point in the history
  • Loading branch information
Katalam committed May 12, 2024
1 parent b0ab134 commit 8065d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/OnOfficeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class OnOfficeService

public function __construct()
{
$this->token = config('onoffice.token');
$this->secret = config('onoffice.secret');
$this->token = config('onoffice.token', '') ?? '';
$this->secret = config('onoffice.secret', '') ?? '';
}

public function getToken(): string
Expand Down

0 comments on commit 8065d10

Please sign in to comment.