mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-01-23 14:08:39 +00:00
fix phpstan
This commit is contained in:
parent
0ce23630ff
commit
851eab7fa5
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user