Ignore invalid share types

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-09-26 09:40:53 +02:00
parent ec8e0f9bf6
commit 2acf9ffafe
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -157,6 +157,8 @@ class Notifier implements INotifier {
if ($share->getStatus() !== IShare::STATUS_PENDING) {
throw new AlreadyProcessedException();
}
} else {
throw new \InvalidArgumentException('Invalid share type');
}
switch ($notification->getSubject()) {