mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #40695 from nextcloud/fix/dashboard-widgets-api-stable27
[stable27] Fix Dashboard IManager getWidgets return annotation
This commit is contained in:
commit
35d73517b5
2 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ interface IManager {
|
|||
/**
|
||||
* @since 20.0.0
|
||||
*
|
||||
* @return IWidget[]
|
||||
* @return array<string, IWidget>
|
||||
*/
|
||||
public function getWidgets(): array;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue