Skip to content

Commit 6a7b622

Browse files
committed
fix: analyse
1 parent 65babc8 commit 6a7b622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Actions/WebhookAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public function __invoke(): JsonResponse
2020
$request = Request::createFromGlobals();
2121
$event = $request->server->get('HTTP_X_GITHUB_EVENT');
2222

23-
if (!$this->webhookService->eventApproved($event)) {
23+
if (!$this->webhookService->eventApproved((string) $event)) {
2424
return response()->json(['message' => __('github-project::github-project.error.event.denied')], 403);
2525
}
2626

27-
/** @var array<string, list<string, mixed>> $payload */
27+
/** @var array<string, mixed> $payload */
2828
$payload = json_decode($request->getContent(), true);
2929

3030
if (!isset($payload['action'])) {

0 commit comments

Comments
 (0)