From 181467beafe126718626ef26dfe866212be3e23b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 14 Nov 2019 19:10:28 +0100 Subject: [PATCH] phpstan fixes --- Views/View.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Views/View.php b/Views/View.php index 85289c542..67da5e81e 100644 --- a/Views/View.php +++ b/Views/View.php @@ -42,10 +42,10 @@ class View extends ViewAbstract /** * View Localization. * - * @var null|Localization + * @var Localization * @since 1.0.0 */ - protected ?Localization $l11n = null; + protected Localization $l11n; /** * Application. @@ -195,12 +195,12 @@ class View extends ViewAbstract $this->setThemeDynamically(); } + /** @var string $module */ $module = $module ?? $this->module; + /** @var string $theme */ $theme = $theme ?? $this->theme; - /** @var string $module */ - /** @var string $theme */ - return $this->app->l11nManager->getText($this->l11n->getLanguage(), $module, $theme, $translation); + return $this->app->l11nManager->getText($this->l11n->getLanguage() ?? 'en', $module, $theme, $translation); } /**