diff --git a/Admin/Install/Comments.php b/Admin/Install/Comments.php index fd7adcd..42194f5 100644 --- a/Admin/Install/Comments.php +++ b/Admin/Install/Comments.php @@ -45,6 +45,10 @@ class Comments ->addConstraint('news_comment_list', 'comment_list', 'comment_list_id'); $mapper = \file_get_contents(__DIR__ . '/../../Models/NewsArticleMapper.php'); + if ($mapper === false) { + throw new \Exception('Couldn\'t parse mapper'); + } + $mapper = \str_replace([ '// @Module Comments ', '/* @Module Comments ', diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index e4ee96a..fdcdb85 100755 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -202,7 +202,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Set comment list * - * @param CommentList $comments + * @param int|CommentList $comments Comment list * * @return void *