Skip to content

Commit 441c934

Browse files
susnuxbackportbot[bot]
authored andcommitted
chore: lint files_reminders using psalm
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 847633c commit 441c934

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
@@ -94,7 +94,7 @@ public function prepare(INotification $notification, string $languageCode): INot
9494
[
9595
'name' => [
9696
'type' => 'highlight',
97-
'id' => $node->getId(),
97+
'id' => (string)$node->getId(),
9898
'name' => $node->getName(),
9999
],
100100
],

build/psalm-baseline.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,12 @@
886886
<code><![CDATA[test]]></code>
887887
</TooManyArguments>
888888
</file>
889+
<file src="apps/files_reminders/lib/Model/RichReminder.php">
890+
<ConstructorSignatureMismatch>
891+
<code><![CDATA[public function __construct(]]></code>
892+
<code><![CDATA[public function __construct(]]></code>
893+
</ConstructorSignatureMismatch>
894+
</file>
889895
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
890896
<RedundantCast>
891897
<code><![CDATA[(int)$code]]></code>

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<directory name="apps/federation"/>
2626
<directory name="apps/files"/>
2727
<directory name="apps/files_external"/>
28+
<directory name="apps/files_reminders"/>
2829
<directory name="apps/files_sharing"/>
2930
<directory name="apps/files_trashbin"/>
3031
<directory name="apps/files_versions"/>

0 commit comments

Comments
 (0)