Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/webhook_listeners/lib/Db/WebhookListenerMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down
Loading