Skip to content

Commit

Permalink
Merge pull request #15 from f-liva/feature/fix-dependency-resolving
Browse files Browse the repository at this point in the history
Fix Unresolvable dependency resolving [Parameter #0 [  string $default ]] in class Whitecube\LaravelTimezones\Timezone
  • Loading branch information
toonvandenbos authored Nov 4, 2024
2 parents 3e7cc36 + 22b8c87 commit f618bfc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Timezone.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ class Timezone
/**
* Create a new singleton instance.
*/
public function __construct(string $default)
public function __construct(string $default = '')
{
if (empty($default)) {
$default = config('app.timezone');
}

$this->setStorage($default);
$this->setCurrent($default);
}
Expand Down

0 comments on commit f618bfc

Please sign in to comment.