diff --git a/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php b/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php index bef8223b31599..5bb6d99f04ed7 100644 --- a/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php +++ b/apps/webhook_listeners/lib/Db/WebhookListenerMapper.php @@ -84,7 +84,7 @@ public function addWebhookListener( ?array $authData, ?array $tokenNeeded = [], ): WebhookListener { - /* Remove any superfluous antislash */ + /* Remove any superfluous backslash */ $event = ltrim($event, '\\'); if (!class_exists($event) || !is_a($event, IWebhookCompatibleEvent::class, true)) { throw new \UnexpectedValueException("$event is not an event class compatible with webhooks"); @@ -126,7 +126,7 @@ public function updateWebhookListener( ?array $authData, ?array $tokenNeeded = [], ): WebhookListener { - /* Remove any superfluous antislash */ + /* Remove any superfluous backslash */ $event = ltrim($event, '\\'); if (!class_exists($event) || !is_a($event, IWebhookCompatibleEvent::class, true)) { throw new \UnexpectedValueException("$event is not an event class compatible with webhooks");