Add proper types to ControllerMap::isDefaultController()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 10:07:00 +0000 (12:07 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 10:07:00 +0000 (12:07 +0200)
wcfsetup/install/files/lib/system/request/ControllerMap.class.php

index 119b6ae0c35905ce201f2594f754466b0b73c4ea..f5f1aa70bba81e4f449db80b5fa948618f96d5d8 100644 (file)
@@ -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])) {