From 851eab7fa59b1f4e73dcb00033042e9bc3becaf1 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 3 Mar 2020 16:26:48 +0100 Subject: [PATCH] fix phpstan --- Models/Comment.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Models/Comment.php b/Models/Comment.php index 26a7634..f36ed3d 100644 --- a/Models/Comment.php +++ b/Models/Comment.php @@ -42,7 +42,13 @@ class Comment */ private \DateTime $createdAt; - private $list = null; + /** + * Comment list this comment belongs to + * + * @var int + * @since 1.0.0 + */ + private $list = 0; /** * Title @@ -123,13 +129,13 @@ class Comment /** * Set the list this comment belongs to * - * @param mixed $list List + * @param int $list List * * @return void * * @since 1.0.0 */ - public function setList($list) : void + public function setList(int $list) : void { $this->list = $list; } @@ -137,11 +143,11 @@ class Comment /** * Get the list this comment belongs to * - * @return mixed + * @return int * * @since 1.0.0 */ - public function getList() + public function getList() : int { return $this->list; }