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; }