From 1ae27fe5e393216f40087ccb1c935598881f76df Mon Sep 17 00:00:00 2001 From: Di Date: Fri, 11 Oct 2024 18:44:00 +0200 Subject: [PATCH] Fix deprecation warning --- src/Traits/HasComments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/HasComments.php b/src/Traits/HasComments.php index bf8bc07..27b0a4f 100644 --- a/src/Traits/HasComments.php +++ b/src/Traits/HasComments.php @@ -42,7 +42,7 @@ trait HasComments 'is_approved' => ($user instanceof Commentator) ? ! $user->needsCommentApproval($this) : false, 'user_id' => is_null($user) ? null : $user->getKey(), 'commentable_id' => $this->getKey(), - 'commentable_type' => get_class(), + 'commentable_type' => get_class($this), ]); return $this->comments()->save($comment);