Skip to content

Commit

Permalink
refactored widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Sep 21, 2023
1 parent 1956ba0 commit 29f7a78
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Widget/DemoWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,18 @@ public function getHeight(): int
}

/**
* @param array<string, string|int> $options
* @return array<string, mixed>
* @param array<string, string|bool|int|null> $options
* @return array<string, string|bool|int|null>
*/
public function getOptions(array $options = []): array
{
return array_merge(['id' => 'DemoWidget'], parent::getOptions($options));
}

/**
* @param array<string, string|int> $options
* @return array<string, mixed>
* @param array<string, string|bool|int|null> $options
*/
public function getData(array $options = [])
public function getData(array $options = []): mixed
{
$query = new UserQuery();
$query->setSystemAccount(false);
Expand Down

0 comments on commit 29f7a78

Please sign in to comment.