Fix Dashboard IManager getWidgets return annotation

Signed-off-by: jld3103 <jld3103yt@gmail.com>
This commit is contained in:
jld3103 2023-09-19 17:14:02 +02:00
parent 09794b6792
commit 80e3064817
No known key found for this signature in database
GPG key ID: 9062417B9E8EB7B3
2 changed files with 6 additions and 3 deletions

View file

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

View file

@ -40,7 +40,7 @@ interface IManager {
/**
* @since 20.0.0
*
* @return IWidget[]
* @return array<string, IWidget>
*/
public function getWidgets(): array;
}