From 69e8693ec67de2844199f9aff656f272bd38496d Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 18 Feb 2022 15:47:17 -0800 Subject: [PATCH] (REF) CRM_Queue_Task - Tighter signature --- CRM/Queue/Task.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Queue/Task.php b/CRM/Queue/Task.php index cb510da205..ab8fa06b24 100644 --- a/CRM/Queue/Task.php +++ b/CRM/Queue/Task.php @@ -47,10 +47,10 @@ class CRM_Queue_Task { * (CRM_Queue_TaskContext). * @param array $arguments * Serializable, extra arguments to pass to the callback (in order). - * @param string $title + * @param string|null $title * A printable string which describes this task. */ - public function __construct($callback, $arguments, $title = NULL) { + public function __construct($callback, array $arguments = [], ?string $title = NULL) { $this->callback = $callback; $this->arguments = $arguments; $this->title = $title; -- 2.25.1