From 41e613c84c6f83517bd8b263c296dd4c6fa411d1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 31 Jul 2020 18:13:52 +0200 Subject: [PATCH] inspection fixes --- Admin/Install/Comments.php | 4 ++++ Models/NewsArticle.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 *