From e7afa197f02e2d6436c52709ff1ba2d2f7c07c67 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 15 Aug 2019 21:55:12 +0200 Subject: [PATCH] Implement php 7.4 type hints --- Controller/Controller.php | 4 ++-- Models/Invoice.php | 4 ++-- Models/InvoiceMapper.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Controller/Controller.php b/Controller/Controller.php index f0d04d2..73698f1 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -66,7 +66,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string[] * @since 1.0.0 */ - protected static $providing = []; + protected static array $providing = []; /** * Dependencies. @@ -74,5 +74,5 @@ class Controller extends ModuleAbstract implements WebInterface * @var string[] * @since 1.0.0 */ - protected static $dependencies = []; + protected static array $dependencies = []; } diff --git a/Models/Invoice.php b/Models/Invoice.php index d34bcb5..bc78aee 100644 --- a/Models/Invoice.php +++ b/Models/Invoice.php @@ -56,7 +56,7 @@ class Invoice implements \JsonSerializable /** * Invoice created at. * - * @var \DateTime + * @var null|\DateTime * @since 1.0.0 */ private $createdAt = null; @@ -64,7 +64,7 @@ class Invoice implements \JsonSerializable /** * Invoice send at. * - * @var \DateTime + * @var null|\DateTime * @since 1.0.0 */ private $send = null; diff --git a/Models/InvoiceMapper.php b/Models/InvoiceMapper.php index bd853bb..68e3262 100644 --- a/Models/InvoiceMapper.php +++ b/Models/InvoiceMapper.php @@ -32,7 +32,7 @@ final class InvoiceMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $primaryField = 'billing_invoice_id'; + protected static string $primaryField = 'billing_invoice_id'; /** * Primary table. @@ -40,5 +40,5 @@ final class InvoiceMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $table = 'billing_invoice'; + protected static string $table = 'billing_invoice'; }