phpstan fixes

This commit is contained in:
Dennis Eichhorn 2019-11-14 19:10:28 +01:00
parent d706b8b320
commit 181467beaf

View File

@ -42,10 +42,10 @@ class View extends ViewAbstract
/** /**
* View Localization. * View Localization.
* *
* @var null|Localization * @var Localization
* @since 1.0.0 * @since 1.0.0
*/ */
protected ?Localization $l11n = null; protected Localization $l11n;
/** /**
* Application. * Application.
@ -195,12 +195,12 @@ class View extends ViewAbstract
$this->setThemeDynamically(); $this->setThemeDynamically();
} }
/** @var string $module */
$module = $module ?? $this->module; $module = $module ?? $this->module;
/** @var string $theme */
$theme = $theme ?? $this->theme; $theme = $theme ?? $this->theme;
/** @var string $module */ return $this->app->l11nManager->getText($this->l11n->getLanguage() ?? 'en', $module, $theme, $translation);
/** @var string $theme */
return $this->app->l11nManager->getText($this->l11n->getLanguage(), $module, $theme, $translation);
} }
/** /**