From 8f8052e7e1aaca0c979e0265cb45bea68b42b8f4 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 18 May 2026 15:48:23 +0200 Subject: [PATCH 1/2] fix: fix noticition deprecation warning Signed-off-by: Robin Appelman --- appinfo/info.xml | 4 ++-- lib/Listener.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 8a570c9d..3daa82b6 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -11,7 +11,7 @@ - 1.3.2 + 1.3.3 agpl Robin Appelman NotifyPush @@ -27,7 +27,7 @@ Once the app is installed, the push binary needs to be setup. You can either use https://github.com/nextcloud/notify_push/issues - + diff --git a/lib/Listener.php b/lib/Listener.php index a5526ae7..97b13eec 100644 --- a/lib/Listener.php +++ b/lib/Listener.php @@ -22,6 +22,7 @@ use OCP\Notification\IDismissableNotifier; use OCP\Notification\INotification; use OCP\Notification\INotifier; +use OCP\Notification\UnknownNotificationException; use OCP\Share\Events\ShareCreatedEvent; use OCP\Share\IShare; @@ -102,7 +103,7 @@ public function getName(): string { } public function prepare(INotification $notification, string $languageCode): INotification { - throw new \InvalidArgumentException(); + throw new UnknownNotificationException(); } public function dismissNotification(INotification $notification): void { From 290c3d15429f146cd93108eb758c6fc0689449fd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 18 May 2026 15:52:12 +0200 Subject: [PATCH 2/2] chore: psalm php version Signed-off-by: Robin Appelman --- psalm.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psalm.xml b/psalm.xml index 55758e1b..7a444190 100644 --- a/psalm.xml +++ b/psalm.xml @@ -8,7 +8,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config https://getpsalm.org/schema/config" - phpVersion="8.0" + phpVersion="8.1" >