Skip to content

Commit 8f3abc4

Browse files
committed
chore: lint files_reminders using psalm
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 54efdf2 commit 8f3abc4

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

apps/files_reminders/lib/Notification/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function prepare(INotification $notification, string $languageCode): INot
7676
[
7777
'name' => [
7878
'type' => 'highlight',
79-
'id' => $node->getId(),
79+
'id' => (string)$node->getId(),
8080
'name' => $node->getName(),
8181
],
8282
],

build/psalm-baseline.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,12 @@
843843
<code><![CDATA[test]]></code>
844844
</TooManyArguments>
845845
</file>
846+
<file src="apps/files_reminders/lib/Model/RichReminder.php">
847+
<ConstructorSignatureMismatch>
848+
<code><![CDATA[public function __construct(]]></code>
849+
<code><![CDATA[public function __construct(]]></code>
850+
</ConstructorSignatureMismatch>
851+
</file>
846852
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
847853
<RedundantCast>
848854
<code><![CDATA[(int)$code]]></code>

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<directory name="apps/federation"/>
3131
<directory name="apps/files"/>
3232
<directory name="apps/files_external"/>
33+
<directory name="apps/files_reminders"/>
3334
<directory name="apps/files_sharing"/>
3435
<directory name="apps/files_trashbin"/>
3536
<directory name="apps/files_versions"/>

0 commit comments

Comments
 (0)