Browse Source

chore: lint files_reminders using psalm

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/51991/head
Ferdinand Thiessen 7 months ago
committed by backportbot[bot]
parent
commit
1ab680ae69
  1. 2
      apps/files_reminders/lib/Notification/Notifier.php
  2. 6
      build/psalm-baseline.xml
  3. 1
      psalm.xml

2
apps/files_reminders/lib/Notification/Notifier.php

@ -75,7 +75,7 @@ class Notifier implements INotifier {
[
'name' => [
'type' => 'highlight',
'id' => $node->getId(),
'id' => (string)$node->getId(),
'name' => $node->getName(),
],
],

6
build/psalm-baseline.xml

@ -872,6 +872,12 @@
<code><![CDATA[test]]></code>
</TooManyArguments>
</file>
<file src="apps/files_reminders/lib/Model/RichReminder.php">
<ConstructorSignatureMismatch>
<code><![CDATA[public function __construct(]]></code>
<code><![CDATA[public function __construct(]]></code>
</ConstructorSignatureMismatch>
</file>
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
<RedundantCast>
<code><![CDATA[(int)$code]]></code>

1
psalm.xml

@ -30,6 +30,7 @@
<directory name="apps/federation"/>
<directory name="apps/files"/>
<directory name="apps/files_external"/>
<directory name="apps/files_reminders"/>
<directory name="apps/files_sharing"/>
<directory name="apps/files_trashbin"/>
<directory name="apps/files_versions"/>

Loading…
Cancel
Save