diff --git a/appinfo/info.xml b/appinfo/info.xml index 8a570c9..3daa82b 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 a5526ae..97b13ee 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 { diff --git a/psalm.xml b/psalm.xml index 55758e1..7a44419 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" >