From bf5aa41d630e2eb4eb9b62f42b25f3b7d1ee0112 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Tue, 15 Aug 2023 07:59:28 +0200 Subject: [PATCH] `Widget`: Imported class `AbstractWidget` The return type of static method `Widget::create()` is `AbstractWidget` instance. Hence it is imported in `Widget::class`. --- library/Icinga/Web/Widget.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Widget.php b/library/Icinga/Web/Widget.php index 242138b7a..48ae7bdf8 100644 --- a/library/Icinga/Web/Widget.php +++ b/library/Icinga/Web/Widget.php @@ -4,6 +4,7 @@ namespace Icinga\Web; use Icinga\Exception\ProgrammingError; +use Icinga\Web\Widget\AbstractWidget; /** * Web widgets make things easier for you! @@ -29,7 +30,7 @@ class Widget * @param string $name Widget name * @param array $options Widget constructor options * - * @return Icinga\Web\Widget\AbstractWidget + * @return AbstractWidget */ public static function create($name, $options = array(), $module_name = null) {