fix after change to php 7.4

This commit is contained in:
Dennis Eichhorn 2019-08-17 14:14:51 +02:00
parent 05ec6158a8
commit 85c758812d
7 changed files with 23 additions and 23 deletions

View File

@ -31,7 +31,7 @@ abstract class AccountAbstract
* @var int
* @since 1.0.0
*/
protected $id = 0;
protected int $id = 0;
/**
* Type.
@ -39,7 +39,7 @@ abstract class AccountAbstract
* @var int
* @since 1.0.0
*/
protected $type = AccountType::IMPERSONAL;
protected int $type = AccountType::IMPERSONAL;
/**
* Entry list.
@ -47,7 +47,7 @@ abstract class AccountAbstract
* @var EntryInterface[]
* @since 1.0.0
*/
protected $entries = [];
protected array $entries = [];
/**
* Constructor.

View File

@ -31,7 +31,7 @@ class Balance
* @var int
* @since 1.0.0
*/
private $id = 0;
private int $id = 0;
/**
* Balance data.
@ -39,7 +39,7 @@ class Balance
* @var array
* @since 1.0.0
*/
private $balance = [];
private array $balance = [];
/**
* Balance name.
@ -47,7 +47,7 @@ class Balance
* @var string
* @since 1.0.0
*/
private $name = '';
private string $name = '';
/**
* Balance description.
@ -55,7 +55,7 @@ class Balance
* @var string
* @since 1.0.0
*/
private $description = '';
private string $description = '';
/**
* Get balance id

View File

@ -31,7 +31,7 @@ class BatchPosting implements \Countable
* @var int
* @since 1.0.0
*/
private $id = 0;
private int $id = 0;
/**
* Creator.
@ -39,7 +39,7 @@ class BatchPosting implements \Countable
* @var int
* @since 1.0.0
*/
private $creator = 0;
private int $creator = 0;
/**
* Created.
@ -47,7 +47,7 @@ class BatchPosting implements \Countable
* @var null|\DateTime
* @since 1.0.0
*/
private $created = null;
private ?\DateTime $created = null;
/**
* Description.
@ -55,7 +55,7 @@ class BatchPosting implements \Countable
* @var string
* @since 1.0.0
*/
private $description = '';
private string $description = '';
/**
* Postings.

View File

@ -30,7 +30,7 @@ class CostCenter
* @var int
* @since 1.0.0
*/
private $id = 0;
private int $id = 0;
/**
* Code.
@ -38,7 +38,7 @@ class CostCenter
* @var string
* @since 1.0.0
*/
private $code = '';
private string $code = '';
/**
* Name.
@ -46,7 +46,7 @@ class CostCenter
* @var string
* @since 1.0.0
*/
private $name = '';
private string $name = '';
/**
* Description.
@ -54,7 +54,7 @@ class CostCenter
* @var string
* @since 1.0.0
*/
private $description = '';
private string $description = '';
/**
* Get balance id

View File

@ -30,7 +30,7 @@ class CostObject
* @var int
* @since 1.0.0
*/
private $id = 0;
private int $id = 0;
/**
* Code.
@ -38,7 +38,7 @@ class CostObject
* @var string
* @since 1.0.0
*/
private $code = '';
private string $code = '';
/**
* Name.
@ -46,7 +46,7 @@ class CostObject
* @var string
* @since 1.0.0
*/
private $name = '';
private string $name = '';
/**
* Description.
@ -54,7 +54,7 @@ class CostObject
* @var string
* @since 1.0.0
*/
private $description = '';
private string $description = '';
/**
* Get balance id

View File

@ -33,12 +33,12 @@ class Creditor
* @var int
* @since 1.0.0
*/
protected $id = 0;
protected int $id = 0;
/**
* Account.
*
* @var int
* @var null|int|phpOMS/Account/Account
* @since 1.0.0
*/
protected $account = null;

View File

@ -33,12 +33,12 @@ class Debitor
* @var int
* @since 1.0.0
*/
protected $id = 0;
protected int $id = 0;
/**
* Account.
*
* @var int
* @var null|int|phpOMS/Account/Account
* @since 1.0.0
*/
protected $account = null;