From d94ee83230c786b655716d2915cc2975508947dc Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 7 Nov 2023 11:12:20 -0500 Subject: [PATCH] - Fixed nullable errors after forced typing --- src/Handler.php | 2 +- src/Util/DumpHandler.php | 2 +- src/Util/TaskHandler.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index dbc6064..f94af0a 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -13,7 +13,7 @@ abstract class Handler { public bool $registerFatalErrorHandler = true; - protected Closure $callback; + protected ? Closure $callback; protected Transport\TransportInterface $transport; diff --git a/src/Util/DumpHandler.php b/src/Util/DumpHandler.php index f72826f..6ea906f 100644 --- a/src/Util/DumpHandler.php +++ b/src/Util/DumpHandler.php @@ -6,7 +6,7 @@ use Negundo\Client\DataInterface; class DumpHandler { - public DataInterface $dataManipulator; + public ? DataInterface $dataManipulator; public function __construct(DataInterface $dataManipulator = null) { diff --git a/src/Util/TaskHandler.php b/src/Util/TaskHandler.php index c39d2a4..939e598 100644 --- a/src/Util/TaskHandler.php +++ b/src/Util/TaskHandler.php @@ -6,7 +6,7 @@ use Negundo\Client\DataInterface; class TaskHandler { - public DataInterface $dataManipulator; + public ? DataInterface $dataManipulator; public function __construct(DataInterface $dataManipulator = null) {