Skip to content

Commit 417d6c6

Browse files
committed
Fix PHPStan issue
1 parent 76e9a8c commit 417d6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebhookManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function getWebhookById(int $id): Webhook
157157
->where(['id' => $id])
158158
->one();
159159

160-
if ($result === null) {
160+
if (!$result) {
161161
throw new InvalidArgumentException('Invalid webhook ID: ' . $id);
162162
}
163163

0 commit comments

Comments
 (0)