Skip to content

Commit 05a1889

Browse files
committed
fix: add Throwable exception handling to WebhookAction
1 parent 1034433 commit 05a1889

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Actions/WebhookAction.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use CSlant\GitHubProject\Services\WebhookService;
66
use Illuminate\Http\JsonResponse;
77
use Symfony\Component\HttpFoundation\Request;
8+
use Throwable;
89

910
class WebhookAction
1011
{
@@ -15,6 +16,9 @@ public function __construct(WebhookService $webhookService)
1516
$this->webhookService = $webhookService;
1617
}
1718

19+
/**
20+
* @throws Throwable
21+
*/
1822
public function __invoke(): JsonResponse
1923
{
2024
$request = Request::createFromGlobals();

0 commit comments

Comments
 (0)