Skip to content

Commit 4ec0ca6

Browse files
authored
Merge pull request #51992 from nextcloud/backport/51944/stable31
[stable31] fix(files_reminders): add missing import
2 parents c23e4b3 + 9dcbd76 commit 4ec0ca6

File tree

7 files changed

+14
-2
lines changed

7 files changed

+14
-2
lines changed

apps/files_reminders/composer/composer/autoload_classmap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525
'OCA\\FilesReminders\\Model\\RichReminder' => $baseDir . '/../lib/Model/RichReminder.php',
2626
'OCA\\FilesReminders\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php',
2727
'OCA\\FilesReminders\\Service\\ReminderService' => $baseDir . '/../lib/Service/ReminderService.php',
28+
'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => $baseDir . '/../lib/SetupChecks/NeedNotificationsApp.php',
2829
);

apps/files_reminders/composer/composer/autoload_static.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ComposerStaticInitFilesReminders
4040
'OCA\\FilesReminders\\Model\\RichReminder' => __DIR__ . '/..' . '/../lib/Model/RichReminder.php',
4141
'OCA\\FilesReminders\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php',
4242
'OCA\\FilesReminders\\Service\\ReminderService' => __DIR__ . '/..' . '/../lib/Service/ReminderService.php',
43+
'OCA\\FilesReminders\\SetupChecks\\NeedNotificationsApp' => __DIR__ . '/..' . '/../lib/SetupChecks/NeedNotificationsApp.php',
4344
);
4445

4546
public static function getInitializer(ClassLoader $loader)

apps/files_reminders/lib/AppInfo/Application.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use OCA\FilesReminders\Listener\SabrePluginAddListener;
1717
use OCA\FilesReminders\Listener\UserDeletedListener;
1818
use OCA\FilesReminders\Notification\Notifier;
19+
use OCA\FilesReminders\SetupChecks\NeedNotificationsApp;
1920
use OCP\AppFramework\App;
2021
use OCP\AppFramework\Bootstrap\IBootContext;
2122
use OCP\AppFramework\Bootstrap\IBootstrap;

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
],

apps/files_reminders/lib/SetupChecks/NeedNotificationsApp.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
* SPDX-License-Identifier: AGPL-3.0-or-later
88
*/
99

10-
namespace OCA\DAV\SetupChecks;
10+
namespace OCA\FilesReminders\SetupChecks;
1111

1212
use OCP\App\IAppManager;
13+
use OCP\IL10N;
1314
use OCP\SetupCheck\ISetupCheck;
1415
use OCP\SetupCheck\SetupResult;
1516

1617
class NeedNotificationsApp implements ISetupCheck {
1718
public function __construct(
1819
private IAppManager $appManager,
20+
private IL10N $l10n,
1921
) {
2022
}
2123

build/psalm-baseline.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,12 @@
848848
<code><![CDATA[test]]></code>
849849
</TooManyArguments>
850850
</file>
851+
<file src="apps/files_reminders/lib/Model/RichReminder.php">
852+
<ConstructorSignatureMismatch>
853+
<code><![CDATA[public function __construct(]]></code>
854+
<code><![CDATA[public function __construct(]]></code>
855+
</ConstructorSignatureMismatch>
856+
</file>
851857
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
852858
<RedundantCast>
853859
<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)