Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:55:12 +02:00
parent e8e1bff28b
commit e7afa197f0
3 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ class Controller extends ModuleAbstract implements WebInterface
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $providing = []; protected static array $providing = [];
/** /**
* Dependencies. * Dependencies.
@ -74,5 +74,5 @@ class Controller extends ModuleAbstract implements WebInterface
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $dependencies = []; protected static array $dependencies = [];
} }

View File

@ -56,7 +56,7 @@ class Invoice implements \JsonSerializable
/** /**
* Invoice created at. * Invoice created at.
* *
* @var \DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdAt = null; private $createdAt = null;
@ -64,7 +64,7 @@ class Invoice implements \JsonSerializable
/** /**
* Invoice send at. * Invoice send at.
* *
* @var \DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private $send = null; private $send = null;

View File

@ -32,7 +32,7 @@ final class InvoiceMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'billing_invoice_id'; protected static string $primaryField = 'billing_invoice_id';
/** /**
* Primary table. * Primary table.
@ -40,5 +40,5 @@ final class InvoiceMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'billing_invoice'; protected static string $table = 'billing_invoice';
} }