From 59417c16a9382c7a6ae777beb2bb0404fb9b5d47 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 19 Dec 2020 20:28:40 +0100 Subject: [PATCH] fix type hint --- Views/View.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Views/View.php b/Views/View.php index 740d580c0..428b11bae 100644 --- a/Views/View.php +++ b/Views/View.php @@ -281,15 +281,15 @@ class View extends ViewAbstract /** * Get translation. * - * @param mixed $translation Text - * @param string $module Module name - * @param string $theme Theme name + * @param string $translation Text + * @param null|string $module Module name + * @param null|string $theme Theme name * * @return string * * @since 1.0.0 */ - public function getHtml(mixed $translation, string $module = null, string $theme = null) : string + public function getHtml(string $translation, string $module = null, string $theme = null) : string { return \htmlspecialchars($this->getText($translation, $module, $theme)); }