Skip to content

Commit

Permalink
ci: Fix more psalm things
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jan 10, 2025
1 parent c6128ce commit 2bb4217
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<screenshot>https://github.com/nextcloud/announcementcenter/raw/main/docs/AnnouncementCenterFrontpage.png</screenshot>

<dependencies>
<nextcloud min-version="29" max-version="31" />
<nextcloud min-version="30" max-version="31" />
</dependencies>

<background-jobs>
Expand Down
2 changes: 1 addition & 1 deletion lib/Dashboard/Widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getIconUrl(): string {
}

/**
* @return WidgetButton[]
* @return list<WidgetButton>
*/
public function getWidgetButtons(string $userId): array {
$buttons = [];
Expand Down
10 changes: 5 additions & 5 deletions lib/Model/Announcement.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
findUnusedBaselineEntry="true"
findUnusedCode="false"
resolveFromConfigFile="true"
phpVersion="8.0"
phpVersion="8.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
Expand Down

0 comments on commit 2bb4217

Please sign in to comment.