From 05ec6158a898023c8bc192e86118de65e5b86f0e 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/BatchPosting.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Controller/Controller.php b/Controller/Controller.php index 29c904f..58354c5 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,7 +74,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string[] * @since 1.0.0 */ - protected static $dependencies = [ + protected static array $dependencies = [ 'Media', ]; } diff --git a/Models/BatchPosting.php b/Models/BatchPosting.php index bda3ca0..dfae6d4 100644 --- a/Models/BatchPosting.php +++ b/Models/BatchPosting.php @@ -44,7 +44,7 @@ class BatchPosting implements \Countable /** * Created. * - * @var \DateTime + * @var null|\DateTime * @since 1.0.0 */ private $created = null;