Widget: Imported class AbstractWidget

The return type of static method `Widget::create()` is `AbstractWidget` instance.
Hence it is imported in `Widget::class`.
This commit is contained in:
raviks789 2023-08-15 07:59:28 +02:00
parent 1d8ce55262
commit bf5aa41d63

View File

@ -4,6 +4,7 @@
namespace Icinga\Web; namespace Icinga\Web;
use Icinga\Exception\ProgrammingError; use Icinga\Exception\ProgrammingError;
use Icinga\Web\Widget\AbstractWidget;
/** /**
* Web widgets make things easier for you! * Web widgets make things easier for you!
@ -29,7 +30,7 @@ class Widget
* @param string $name Widget name * @param string $name Widget name
* @param array $options Widget constructor options * @param array $options Widget constructor options
* *
* @return Icinga\Web\Widget\AbstractWidget * @return AbstractWidget
*/ */
public static function create($name, $options = array(), $module_name = null) public static function create($name, $options = array(), $module_name = null)
{ {