From 1ab01d6ea2701eadb822c510ae1c048009e0de9e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 17 Aug 2019 14:14:51 +0200 Subject: [PATCH] fix after change to php 7.4 --- Models/Department.php | 10 +++++----- Models/Position.php | 10 +++++----- Models/Unit.php | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Models/Department.php b/Models/Department.php index 6e60c87..487059f 100644 --- a/Models/Department.php +++ b/Models/Department.php @@ -32,7 +32,7 @@ class Department implements ArrayableInterface, \JsonSerializable * @var int * @since 1.0.0 */ - protected $id = 0; + protected int $id = 0; /** * Name. @@ -40,7 +40,7 @@ class Department implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - protected $name = ''; + protected string $name = ''; /** * Parent @@ -56,7 +56,7 @@ class Department implements ArrayableInterface, \JsonSerializable * @var int * @since 1.0.0 */ - protected $status = Status::INACTIVE; + protected int $status = Status::INACTIVE; /** * Unit this department belongs to @@ -72,7 +72,7 @@ class Department implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - protected $description = ''; + protected string $description = ''; /** * Description. @@ -80,7 +80,7 @@ class Department implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - protected $descriptionRaw = ''; + protected string $descriptionRaw = ''; /** * Constructor diff --git a/Models/Position.php b/Models/Position.php index 1075a69..1c70e2c 100644 --- a/Models/Position.php +++ b/Models/Position.php @@ -32,7 +32,7 @@ class Position implements ArrayableInterface, \JsonSerializable * @var int * @since 1.0.0 */ - protected $id = 0; + protected int $id = 0; /** * Name. @@ -40,7 +40,7 @@ class Position implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - private $name = ''; + private string $name = ''; /** * Parent @@ -64,7 +64,7 @@ class Position implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - private $description = ''; + private string $description = ''; /** * Description. @@ -72,7 +72,7 @@ class Position implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - private $descriptionRaw = ''; + private string $descriptionRaw = ''; /** * Status @@ -80,7 +80,7 @@ class Position implements ArrayableInterface, \JsonSerializable * @var int * @since 1.0.0 */ - protected $status = Status::INACTIVE; + protected int $status = Status::INACTIVE; /** * Get id diff --git a/Models/Unit.php b/Models/Unit.php index c2ba323..70def45 100644 --- a/Models/Unit.php +++ b/Models/Unit.php @@ -32,7 +32,7 @@ class Unit implements ArrayableInterface, \JsonSerializable * @var int * @since 1.0.0 */ - private $id = 0; + private int $id = 0; /** * Name. @@ -40,7 +40,7 @@ class Unit implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - private $name = ''; + private string $name = ''; /** * Parent @@ -56,7 +56,7 @@ class Unit implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - private $description = ''; + private string $description = ''; /** * Description. @@ -64,7 +64,7 @@ class Unit implements ArrayableInterface, \JsonSerializable * @var string * @since 1.0.0 */ - protected $descriptionRaw = ''; + protected string $descriptionRaw = ''; /** * Status @@ -72,7 +72,7 @@ class Unit implements ArrayableInterface, \JsonSerializable * @var int * @since 1.0.0 */ - protected $status = Status::INACTIVE; + protected int $status = Status::INACTIVE; /** * Get id