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

View File

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

View File

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

View File

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