From: Chuck Hagenbuch Date: Sun, 8 Aug 2010 14:34:33 +0000 (-0400) Subject: Add a type hint here to help with dependency injection X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=91aac53cd989873d03246756138e0479dce895e1;p=horde.git Add a type hint here to help with dependency injection --- diff --git a/framework/Routes/lib/Horde/Routes/Utils.php b/framework/Routes/lib/Horde/Routes/Utils.php index 9a3ab5b29..7c19d1709 100644 --- a/framework/Routes/lib/Horde/Routes/Utils.php +++ b/framework/Routes/lib/Horde/Routes/Utils.php @@ -43,7 +43,7 @@ class Horde_Routes_Utils * @param Horde_Routes_Mapper $mapper Mapper for these utilities * @param callback $redirect Redirect callback for redirectTo() */ - public function __construct($mapper, $redirect = null) + public function __construct(Horde_Routes_Mapper $mapper, $redirect = null) { $this->mapper = $mapper; $this->redirect = $redirect;