Skip to content

Commit c974575

Browse files
authored
Fix null payload for the body of a review (#272)
1 parent fb1b483 commit c974575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Subscriber/StatusChangeByReviewSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function onReview(GitHubEvent $event): void
4040
$newStatus = match (strtolower($data['review']['state'])) {
4141
'approved' => Status::REVIEWED,
4242
'changes_requested' => Status::NEEDS_WORK,
43-
default => $this->parseStatusFromText($data['review']['body']),
43+
default => $this->parseStatusFromText($data['review']['body'] ?? ''),
4444
};
4545

4646
if (

0 commit comments

Comments
 (0)