mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-08 16:28:42 +00:00
phpstan fixes
This commit is contained in:
parent
8173246768
commit
6f506e127b
|
|
@ -17,6 +17,7 @@ namespace Modules\Kanban\Models;
|
|||
use Modules\Admin\Models\Account;
|
||||
use Modules\Admin\Models\NullAccount;
|
||||
use Modules\Tasks\Models\Task;
|
||||
use Modules\Media\Models\Media;
|
||||
|
||||
/**
|
||||
* Kanban card class.
|
||||
|
|
@ -56,11 +57,11 @@ class KanbanCard implements \JsonSerializable
|
|||
*/
|
||||
public string $description = '';
|
||||
|
||||
private $column = 0;
|
||||
private int $column = 0;
|
||||
|
||||
private $order = 0;
|
||||
private int $order = 0;
|
||||
|
||||
private $ref = 0;
|
||||
private int $ref = 0;
|
||||
|
||||
public Account $createdBy;
|
||||
|
||||
|
|
@ -70,6 +71,12 @@ class KanbanCard implements \JsonSerializable
|
|||
|
||||
private array $labels = [];
|
||||
|
||||
/**
|
||||
* Media
|
||||
*
|
||||
* @var Media[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private array $media = [];
|
||||
|
||||
/**
|
||||
|
|
@ -290,7 +297,7 @@ class KanbanCard implements \JsonSerializable
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function addMedia($media) : void
|
||||
public function addMedia(Media $media) : void
|
||||
{
|
||||
$this->media[] = $media;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class KanbanCardComment implements \JsonSerializable
|
|||
*/
|
||||
public string $description = '';
|
||||
|
||||
private $card = 0;
|
||||
private int $card = 0;
|
||||
|
||||
public Account $createdBy;
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class KanbanColumn implements \JsonSerializable
|
|||
*/
|
||||
private int $order = 0;
|
||||
|
||||
private $board = 0;
|
||||
private int $board = 0;
|
||||
|
||||
/**
|
||||
* Cards
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user