fix(webhook_listeners): Fix typo in comment

Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
Carl Schwan 2026-03-03 13:54:38 +01:00 committed by Côme Chilliet
parent 6f1fc07868
commit eb5c6acf13
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -84,7 +84,7 @@ class WebhookListenerMapper extends QBMapper {
?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 @@ class WebhookListenerMapper extends QBMapper {
?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");