diff --git a/pages/arenateam.php b/pages/arenateam.php index ebb0f7eb..41b82c1d 100644 --- a/pages/arenateam.php +++ b/pages/arenateam.php @@ -132,7 +132,7 @@ class ArenaTeamPage extends GenericPage } } - public function notFound(string $title = '', string $msg = '') : void + public function notFound(string $title = '', string $msg = '') : never { parent::notFound($title ?: Util::ucFirst(Lang::profiler('profiler')), $msg ?: Lang::profiler('notFound', 'arenateam')); } diff --git a/pages/guild.php b/pages/guild.php index 53c82658..47e323ef 100644 --- a/pages/guild.php +++ b/pages/guild.php @@ -136,7 +136,7 @@ class GuildPage extends GenericPage } } - public function notFound(string $title = '', string $msg = '') : void + public function notFound(string $title = '', string $msg = '') : never { parent::notFound($title ?: Util::ucFirst(Lang::profiler('profiler')), $msg ?: Lang::profiler('notFound', 'guild')); }