Skip to content

Commit 1ae27fe

Browse files
committed
Fix deprecation warning
1 parent 7c598d6 commit 1ae27fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Traits/HasComments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function commentAsUser(?Model $user, string $comment)
4242
'is_approved' => ($user instanceof Commentator) ? ! $user->needsCommentApproval($this) : false,
4343
'user_id' => is_null($user) ? null : $user->getKey(),
4444
'commentable_id' => $this->getKey(),
45-
'commentable_type' => get_class(),
45+
'commentable_type' => get_class($this),
4646
]);
4747

4848
return $this->comments()->save($comment);

0 commit comments

Comments
 (0)