From a29153a4475a10b73387ef7851246eafae07bb57 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 19 Sep 2023 17:14:02 +0200 Subject: [PATCH] Fix Dashboard IManager getWidgets return annotation Signed-off-by: jld3103 --- lib/private/Dashboard/Manager.php | 7 +++++-- lib/public/Dashboard/IManager.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/private/Dashboard/Manager.php b/lib/private/Dashboard/Manager.php index 2aeedf3174ec6..5aa895896952c 100644 --- a/lib/private/Dashboard/Manager.php +++ b/lib/private/Dashboard/Manager.php @@ -40,8 +40,8 @@ class Manager implements IManager { /** @var array */ private $lazyWidgets = []; - /** @var IWidget[] */ - private $widgets = []; + /** @var array */ + private array $widgets = []; private ContainerInterface $serverContainer; private ?IAppManager $appManager = null; @@ -127,6 +127,9 @@ public function loadLazyPanels(): void { $this->lazyWidgets = []; } + /** + * @return array + */ public function getWidgets(): array { $this->loadLazyPanels(); return $this->widgets; diff --git a/lib/public/Dashboard/IManager.php b/lib/public/Dashboard/IManager.php index d9e73c89eb971..4dd3b59696599 100644 --- a/lib/public/Dashboard/IManager.php +++ b/lib/public/Dashboard/IManager.php @@ -41,7 +41,7 @@ public function lazyRegisterWidget(string $widgetClass, string $appId): void; /** * @since 20.0.0 * - * @return IWidget[] + * @return array */ public function getWidgets(): array; }