mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
fix(webhook_listeners): Fix typo in comment
Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
parent
6f1fc07868
commit
eb5c6acf13
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue