From dc6cb2ea41f8a0e806150390228aaeb73d24fa04 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 16 Dec 2023 14:25:01 +0100 Subject: [PATCH] Fix #62 - Declare the language property --- src/Doctum.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Doctum.php b/src/Doctum.php index f6a2755f..50a0a511 100644 --- a/src/Doctum.php +++ b/src/Doctum.php @@ -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|null @@ -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; }