From: Tim Düsterhus Date: Wed, 1 Jun 2022 10:07:00 +0000 (+0200) Subject: Add proper types to ControllerMap::isDefaultController() X-Git-Tag: 6.0.0_Alpha_1~1224^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db56c5b2c4f67e3d036264d5187290e0657a22ec;p=GitHub%2FWoltLab%2FWCF.git Add proper types to ControllerMap::isDefaultController() --- diff --git a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php index 119b6ae0c3..f5f1aa70bb 100644 --- a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php +++ b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php @@ -295,12 +295,8 @@ class ControllerMap extends SingletonFactory /** * Returns true if given controller is the application's default. - * - * @param string $application application identifier - * @param string $controller url controller name - * @return bool true if controller is the application's default */ - public function isDefaultController($application, $controller) + public function isDefaultController(string $application, string $controller): bool { // lookup custom urls first if (isset($this->customUrls['lookup'][$application][$controller])) {