fix after change to php 7.4

This commit is contained in:
Dennis Eichhorn 2019-08-17 14:14:51 +02:00
parent 3cf2c9d15e
commit 1ab01d6ea2
3 changed files with 15 additions and 15 deletions

View File

@ -32,7 +32,7 @@ class Department implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $id = 0; protected int $id = 0;
/** /**
* Name. * Name.
@ -40,7 +40,7 @@ class Department implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $name = ''; protected string $name = '';
/** /**
* Parent * Parent
@ -56,7 +56,7 @@ class Department implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $status = Status::INACTIVE; protected int $status = Status::INACTIVE;
/** /**
* Unit this department belongs to * Unit this department belongs to
@ -72,7 +72,7 @@ class Department implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $description = ''; protected string $description = '';
/** /**
* Description. * Description.
@ -80,7 +80,7 @@ class Department implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $descriptionRaw = ''; protected string $descriptionRaw = '';
/** /**
* Constructor * Constructor

View File

@ -32,7 +32,7 @@ class Position implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $id = 0; protected int $id = 0;
/** /**
* Name. * Name.
@ -40,7 +40,7 @@ class Position implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $name = ''; private string $name = '';
/** /**
* Parent * Parent
@ -64,7 +64,7 @@ class Position implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $description = ''; private string $description = '';
/** /**
* Description. * Description.
@ -72,7 +72,7 @@ class Position implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $descriptionRaw = ''; private string $descriptionRaw = '';
/** /**
* Status * Status
@ -80,7 +80,7 @@ class Position implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $status = Status::INACTIVE; protected int $status = Status::INACTIVE;
/** /**
* Get id * Get id

View File

@ -32,7 +32,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $id = 0; private int $id = 0;
/** /**
* Name. * Name.
@ -40,7 +40,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $name = ''; private string $name = '';
/** /**
* Parent * Parent
@ -56,7 +56,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $description = ''; private string $description = '';
/** /**
* Description. * Description.
@ -64,7 +64,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $descriptionRaw = ''; protected string $descriptionRaw = '';
/** /**
* Status * Status
@ -72,7 +72,7 @@ class Unit implements ArrayableInterface, \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $status = Status::INACTIVE; protected int $status = Status::INACTIVE;
/** /**
* Get id * Get id