diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-09-19 17:14:02 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-09-20 17:41:37 +0200 |
commit | 80e3064817602c5d5f9b97646b1dff3c1d163af3 (patch) | |
tree | 27b3643d13d344a5c85b1ed67a3f5306dfe1315f /lib | |
parent | 09794b67922bf9da70fc6207486d1be5a3898e41 (diff) | |
download | nextcloud-server-80e3064817602c5d5f9b97646b1dff3c1d163af3.tar.gz nextcloud-server-80e3064817602c5d5f9b97646b1dff3c1d163af3.zip |
Fix Dashboard IManager getWidgets return annotation
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Dashboard/Manager.php | 7 | ||||
-rw-r--r-- | 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 18a66499167..afe28872e69 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<string, IWidget> */ + private array $widgets = []; private ContainerInterface $serverContainer; private ?IAppManager $appManager = null; @@ -134,6 +134,9 @@ class Manager implements IManager { $this->lazyWidgets = []; } + /** + * @return array<string, IWidget> + */ public function getWidgets(): array { $this->loadLazyPanels(); return $this->widgets; diff --git a/lib/public/Dashboard/IManager.php b/lib/public/Dashboard/IManager.php index 77bff7b34ff..135fd4b4514 100644 --- a/lib/public/Dashboard/IManager.php +++ b/lib/public/Dashboard/IManager.php @@ -40,7 +40,7 @@ interface IManager { /** * @since 20.0.0 * - * @return IWidget[] + * @return array<string, IWidget> */ public function getWidgets(): array; } |