From db56c5b2c4f67e3d036264d5187290e0657a22ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 1 Jun 2022 12:07:00 +0200 Subject: [PATCH] Add proper types to ControllerMap::isDefaultController() --- .../files/lib/system/request/ControllerMap.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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])) { -- 2.20.1