Skip to content

Commit

Permalink
fix: phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Nov 12, 2023
1 parent d733735 commit 03f5ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/ReplyPostValidate.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle(Saving $event)
// If it's a new discussion, the reCAPTCHA is already validated in discussion saving event
// When this code runs, the discussion already exists, and the number has not been assigned to the post yet
// So we look in the discussion number index, just like the reply permission check does in PostReplyHandler
if ($event->post->number == 1 || $event->post->discussion->first_post_id === null) {
if ($event->post->number === 1 || $event->post->discussion->first_post_id === null) {
return;
}

Expand Down

0 comments on commit 03f5ecc

Please sign in to comment.