From daddfe11b5cb7c481ef1bc17749ac74004a075dc Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Mon, 14 Aug 2023 17:21:25 +0200 Subject: [PATCH] `Tab`: Fix type of property `$url` `$url` can either be a string or `Icinga\Web\Url` instance. --- library/Icinga/Web/Widget/Tab.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Web/Widget/Tab.php b/library/Icinga/Web/Widget/Tab.php index d2d3f327b..a367f0082 100644 --- a/library/Icinga/Web/Widget/Tab.php +++ b/library/Icinga/Web/Widget/Tab.php @@ -14,7 +14,7 @@ use Icinga\Web\Url; * @property string $title Tab title * @property string $icon Icon URL, preferrably relative to the Icinga * base URL - * @property string $url Action URL, preferrably relative to the Icinga + * @property string|URL $url Action URL, preferrably relative to the Icinga * base URL * @property string $urlParams Action URL Parameters * @@ -52,7 +52,7 @@ class Tab extends AbstractWidget /** * The Url this tab points to * - * @var string|null + * @var Url|null */ private $url = null; @@ -172,7 +172,7 @@ class Tab extends AbstractWidget /** * Set the Url this tab points to * - * @param string $url The Url to use for this tab + * @param string|Url $url The Url to use for this tab */ public function setUrl($url) {