diff --git a/src/Listeners/SaveVotesToDatabase.php b/src/Listeners/SaveVotesToDatabase.php old mode 100755 new mode 100644 index cf791fc1..21d102b1 --- a/src/Listeners/SaveVotesToDatabase.php +++ b/src/Listeners/SaveVotesToDatabase.php @@ -96,7 +96,7 @@ public function handle(Saving $event) } } - public function vote(Post $post, bool $isDownvoted, bool $isUpvoted, User $actor, User $user) + public function vote(Post $post, bool $isDownvoted, bool $isUpvoted, User $actor, ?User $user) { $vote = Vote::build($post, $actor);