diff options
| author | Simon Rettberg | 2025-08-01 13:41:49 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-08-01 13:41:49 +0200 |
| commit | 429cfb1677ec77c5a945f655d9405d038d3e5a2c (patch) | |
| tree | b3fbb729cb2231f4163b96a67046ad878f48d1b4 /inc/taskmanager.inc.php | |
| parent | [minilinux] show -> action for POST actions (diff) | |
| download | slx-admin-429cfb1677ec77c5a945f655d9405d038d3e5a2c.tar.gz slx-admin-429cfb1677ec77c5a945f655d9405d038d3e5a2c.tar.xz slx-admin-429cfb1677ec77c5a945f655d9405d038d3e5a2c.zip | |
Implicitly nullable types are deprecated in PHP 8.3, make explicit
Diffstat (limited to 'inc/taskmanager.inc.php')
| -rw-r--r-- | inc/taskmanager.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/taskmanager.inc.php b/inc/taskmanager.inc.php index b165e2f3..4a83e496 100644 --- a/inc/taskmanager.inc.php +++ b/inc/taskmanager.inc.php @@ -53,7 +53,7 @@ class Taskmanager * the return value is just true (and you won't know if the task could actually be started) * @return array{id: string, statusCode: string, data: array}|bool struct representing the task status (as a result of submit); false on communication error */ - public static function submit(string $task, array $data = null, bool $async = false) + public static function submit(string $task, ?array $data = null, ?bool $async = false) { self::init(); $seq = (string) mt_rand(); |
