diff --git a/Task/Scheduler.php b/Task/Scheduler.php index eaebb14..db054d3 100644 --- a/Task/Scheduler.php +++ b/Task/Scheduler.php @@ -17,7 +17,7 @@ class Scheduler { private EventDispatcher $dispatcher; - public function __construct(EventDispatcher $dispatcher = null) + public function __construct(?EventDispatcher $dispatcher = null) { if ($dispatcher === null) { $dispatcher = new EventDispatcher();