Skip to content

Commit 1034433

Browse files
committed
fix: cast field_name to string in isStatusCommentEnabled check
1 parent eb345fb commit 1034433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/WebhookService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function validatePayload(array $payload): ?JsonResponse
4141
);
4242
}
4343

44-
if (!$this->isStatusCommentEnabled($payload['changes']['field_value']['field_name'])) {
44+
if (!$this->isStatusCommentEnabled((string) $payload['changes']['field_value']['field_name'])) {
4545
return response()->json(
4646
['message' => __('github-project::github-project.error.event.status_comment_disabled')],
4747
400

0 commit comments

Comments
 (0)