From 9875ec177719af34444a31a5af6a00af5a93cfee Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 2 May 2024 22:54:37 +0000 Subject: [PATCH] Went through todos --- Models/Comment.php | 4 ++-- Models/CommentMapper.php | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Models/Comment.php b/Models/Comment.php index 6b44c83..c4e2b61 100755 --- a/Models/Comment.php +++ b/Models/Comment.php @@ -54,10 +54,10 @@ class Comment implements \JsonSerializable /** * Comment list this comment belongs to * - * @var int|CommentList + * @var int * @since 1.0.0 */ - public $list = 0; + public int $list = 0; /** * Title diff --git a/Models/CommentMapper.php b/Models/CommentMapper.php index 1bf0def..e86b69d 100755 --- a/Models/CommentMapper.php +++ b/Models/CommentMapper.php @@ -59,11 +59,7 @@ final class CommentMapper extends DataMapperFactory 'createdBy' => [ 'mapper' => AccountMapper::class, 'external' => 'comments_comment_created_by', - ], - 'list' => [ - 'mapper' => CommentListMapper::class, - 'external' => 'comments_comment_list', - ], + ] ]; /**