mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
phpstan fixes
This commit is contained in:
parent
d706b8b320
commit
181467beaf
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user