From dd500578c9a75f6495274487ad327a1747cb07d2 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 14 Jan 2020 14:26:14 +0100 Subject: [PATCH] Url: Fix @return hints Before, sublcasses of Url suffered from @return Url hints. This is @return static now. --- library/Icinga/Web/Url.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php index 6096eef88..441819ce3 100644 --- a/library/Icinga/Web/Url.php +++ b/library/Icinga/Web/Url.php @@ -100,7 +100,7 @@ class Url * @param UrlParams|array $params Parameters that should additionally be considered for the url * @param Zend_Request $request A request to use instead of the default one * - * @return Url + * @return static */ public static function fromRequest($params = array(), $request = null) { @@ -156,7 +156,7 @@ class Url * @param array $params An array of parameters that should additionally be considered for the url * @param Zend_Request $request A request to use instead of the default one * - * @return Url + * @return static */ public static function fromPath($url, array $params = array(), $request = null) { @@ -245,7 +245,7 @@ class Url * @param Filter $filter The base filter * @param Filter $optional The optional filter * - * @return Url The altered URL containing the new filter + * @return static The altered URL containing the new filter * @throws ProgrammingError */ public static function urlAddFilterOptional($url, $filter, $optional) @@ -796,7 +796,7 @@ class Url * * @param string|array $keyOrArrayOfKeys A single string or an array containing parameter names * - * @return Url + * @return static */ public function getUrlWithout($keyOrArrayOfKeys) { @@ -819,7 +819,7 @@ class Url * @param string|array $param A single string or an array containing parameter names * @param array $values an optional values array * - * @return Url + * @return static */ public function with($param, $values = null) {