fix after change to php 7.4

This commit is contained in:
Dennis Eichhorn 2019-08-17 14:14:51 +02:00
parent 9f39aad6af
commit 2567161ceb
4 changed files with 28 additions and 28 deletions

View File

@ -33,7 +33,7 @@ abstract class RelationAbstract implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $id = 0;
protected int $id = 0;
/**
* Duty.
@ -41,7 +41,7 @@ abstract class RelationAbstract implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $duty = DutyType::TO;
protected int $duty = DutyType::TO;
/**
@ -50,7 +50,7 @@ abstract class RelationAbstract implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $element = 0;
protected int $element = 0;
/**
* Get id.

View File

@ -36,7 +36,7 @@ class Task implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $id = 0;
protected int $id = 0;
/**
* Title.
@ -44,7 +44,7 @@ class Task implements \JsonSerializable
* @var string
* @since 1.0.0
*/
protected $title = '';
protected string $title = '';
/**
* Creator.
@ -60,7 +60,7 @@ class Task implements \JsonSerializable
* @var null|\DateTime
* @since 1.0.0
*/
protected $createdAt = null;
protected ?\DateTime $createdAt = null;
/**
* Description.
@ -68,7 +68,7 @@ class Task implements \JsonSerializable
* @var string
* @since 1.0.0
*/
protected $description = '';
protected string $description = '';
/**
* Description raw.
@ -76,7 +76,7 @@ class Task implements \JsonSerializable
* @var string
* @since 1.0.0
*/
protected $descriptionRaw = '';
protected string $descriptionRaw = '';
/**
* Type.
@ -84,7 +84,7 @@ class Task implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $type = TaskType::SINGLE;
protected int $type = TaskType::SINGLE;
/**
* Status.
@ -92,7 +92,7 @@ class Task implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $status = TaskStatus::OPEN;
protected int $status = TaskStatus::OPEN;
/**
* Task can be closed by user.
@ -100,7 +100,7 @@ class Task implements \JsonSerializable
* @var bool
* @since 1.0.0
*/
protected $isClosable = true;
protected bool $isClosable = true;
/**
* Task can be edited by user.
@ -108,7 +108,7 @@ class Task implements \JsonSerializable
* @var bool
* @since 1.0.0
*/
protected $isEditable = true;
protected bool $isEditable = true;
/**
* Start.
@ -140,7 +140,7 @@ class Task implements \JsonSerializable
* @var TaskElement[]
* @since 1.0.0
*/
protected $taskElements = [];
protected array $taskElements = [];
/**
* Task elements.
@ -148,7 +148,7 @@ class Task implements \JsonSerializable
* @var Tag[]
* @since 1.0.0
*/
protected $tags = [];
protected array $tags = [];
/**
* Schedule
@ -164,7 +164,7 @@ class Task implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $priority = TaskPriority::NONE;
protected int $priority = TaskPriority::NONE;
/**
* Media files
@ -172,7 +172,7 @@ class Task implements \JsonSerializable
* @var array
* @since 1.0.0
*/
protected $media = [];
protected array $media = [];
/**
* Constructor.

View File

@ -36,7 +36,7 @@ class TaskElement implements \JsonSerializable
* @var int
* @since 1.0.0
*/
private $id = 0;
private int $id = 0;
/**
* Description.
@ -44,7 +44,7 @@ class TaskElement implements \JsonSerializable
* @var string
* @since 1.0.0
*/
private $description = '';
private string $description = '';
/**
* Description raw.
@ -52,7 +52,7 @@ class TaskElement implements \JsonSerializable
* @var string
* @since 1.0.0
*/
private $descriptionRaw = '';
private string $descriptionRaw = '';
/**
* Task.
@ -60,7 +60,7 @@ class TaskElement implements \JsonSerializable
* @var int
* @since 1.0.0
*/
private $task = 0;
private int $task = 0;
/**
* Creator.
@ -76,7 +76,7 @@ class TaskElement implements \JsonSerializable
* @var null|\DateTime
* @since 1.0.0
*/
private $createdAt = null;
private ?\DateTime $createdAt = null;
/**
* Status.
@ -84,7 +84,7 @@ class TaskElement implements \JsonSerializable
* @var int
* @since 1.0.0
*/
private $status = TaskStatus::OPEN;
private int $status = TaskStatus::OPEN;
/**
* Due.
@ -92,7 +92,7 @@ class TaskElement implements \JsonSerializable
* @var null|\DateTime
* @since 1.0.0
*/
private $due = null;
private ?\DateTime $due = null;
/**
* Priority
@ -100,7 +100,7 @@ class TaskElement implements \JsonSerializable
* @var int
* @since 1.0.0
*/
protected $priority = TaskPriority::NONE;
protected int $priority = TaskPriority::NONE;
/**
* Media.
@ -108,7 +108,7 @@ class TaskElement implements \JsonSerializable
* @var array
* @since 1.0.0
*/
private $media = [];
private array $media = [];
/**
* Accounts who received this task element.
@ -116,7 +116,7 @@ class TaskElement implements \JsonSerializable
* @var array
* @since 1.0.0
*/
protected $accRelation = [];
protected array $accRelation = [];
/**
* Groups who received this task element.
@ -124,7 +124,7 @@ class TaskElement implements \JsonSerializable
* @var array
* @since 1.0.0
*/
protected $grpRelation = [];
protected array $grpRelation = [];
/**
* Constructor.

View File

@ -30,5 +30,5 @@ class TaskTemplate extends Task
* @var int
* @since 1.0.0
*/
protected $type = TaskType::TEMPLATE;
protected int $type = TaskType::TEMPLATE;
}