Skip to content

Commit

Permalink
Fix #62 - Declare the language property
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Dec 16, 2023
1 parent b88cd7f commit dc6cb2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Doctum.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ class Doctum implements ArrayAccess
private $base_url = null;
/** @var string|null */
private $favicon = null;
/** @var string */
private $language = 'en';

/**
* @var array<string,string>|null
Expand Down Expand Up @@ -362,7 +364,7 @@ public function offsetGet($offset)
private function getLanguageFromConfig(): string
{
/** @var string $language */
$language = $this->config['language'] ?? 'en';
$language = $this->config['language'] ?? $this->language;
return $language;
}

Expand Down

0 comments on commit dc6cb2e

Please sign in to comment.