fix after change to php 7.4

This commit is contained in:
Dennis Eichhorn 2019-08-17 14:14:51 +02:00
parent e7afa197f0
commit 529b2a8507

View File

@ -35,7 +35,7 @@ class Invoice implements \JsonSerializable
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $number = ''; private string $number = '';
/** /**
* Invoice type. * Invoice type.
@ -43,7 +43,7 @@ class Invoice implements \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $type = InvoiceType::BILL; private int $type = InvoiceType::BILL;
/** /**
* Invoice status. * Invoice status.
@ -51,7 +51,7 @@ class Invoice implements \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $status = InvoiceStatus::DRAFT; private int $status = InvoiceStatus::DRAFT;
/** /**
* Invoice created at. * Invoice created at.
@ -59,7 +59,7 @@ class Invoice implements \JsonSerializable
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdAt = null; private ?\DateTime $createdAt = null;
/** /**
* Invoice send at. * Invoice send at.
@ -67,7 +67,7 @@ class Invoice implements \JsonSerializable
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private $send = null; private ?\DateTime $send = null;
private $createdBy = 0; private $createdBy = 0;
@ -103,7 +103,7 @@ class Invoice implements \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $referer = 0; private int $referer = 0;
private $refererName = ''; private $refererName = '';
@ -145,7 +145,7 @@ class Invoice implements \JsonSerializable
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $reference = 0; private int $reference = 0;
public function __construct() public function __construct()
{ {