diff --git a/lib/Dashboard/Widget.php b/lib/Dashboard/Widget.php index 7c4e3899..0a601b51 100644 --- a/lib/Dashboard/Widget.php +++ b/lib/Dashboard/Widget.php @@ -90,7 +90,7 @@ public function getIconUrl(): string { } /** - * @return WidgetButton[] + * @return list */ public function getWidgetButtons(string $userId): array { $buttons = []; diff --git a/lib/Model/Announcement.php b/lib/Model/Announcement.php index f2c2a469..b8335c8f 100644 --- a/lib/Model/Announcement.php +++ b/lib/Model/Announcement.php @@ -65,16 +65,16 @@ class Announcement extends Entity { protected $notTypes; public function __construct() { - $this->addType('time', 'int'); + $this->addType('time', 'integer'); $this->addType('user', 'string'); $this->addType('subject', 'string'); $this->addType('message', 'string'); $this->addType('plainMessage', 'string'); - $this->addType('allowComments', 'int'); - $this->addType('scheduleTime', 'int'); - $this->addType('deleteTime', 'int'); + $this->addType('allowComments', 'integer'); + $this->addType('scheduleTime', 'integer'); + $this->addType('deleteTime', 'integer'); $this->addType('groups', 'string'); - $this->addType('notTypes', 'int'); + $this->addType('notTypes', 'integer'); } public function getParsedSubject(): string {