From 627376c7ca78c756eb890fbb50cbb0f21f6ce55d Mon Sep 17 00:00:00 2001 From: Francescu GAROBY Date: Wed, 25 May 2022 16:26:24 +0200 Subject: [PATCH] '$backoff' can be an int or an array of int (#42516) Co-authored-by: Francescu Garoby --- Jobs/Job.php | 2 +- ListenerOptions.php | 2 +- WorkerOptions.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jobs/Job.php b/Jobs/Job.php index 011e0f58..373d48f3 100755 --- a/Jobs/Job.php +++ b/Jobs/Job.php @@ -278,7 +278,7 @@ public function shouldFailOnTimeout() /** * The number of seconds to wait before retrying a job that encountered an uncaught exception. * - * @return int|null + * @return int|int[]|null */ public function backoff() { diff --git a/ListenerOptions.php b/ListenerOptions.php index c147f7af..a75ac7a9 100644 --- a/ListenerOptions.php +++ b/ListenerOptions.php @@ -16,7 +16,7 @@ class ListenerOptions extends WorkerOptions * * @param string $name * @param string|null $environment - * @param int $backoff + * @param int|int[] $backoff * @param int $memory * @param int $timeout * @param int $sleep diff --git a/WorkerOptions.php b/WorkerOptions.php index 8632e66d..0fbb03e2 100644 --- a/WorkerOptions.php +++ b/WorkerOptions.php @@ -14,7 +14,7 @@ class WorkerOptions /** * The number of seconds to wait before retrying a job that encountered an uncaught exception. * - * @var int + * @var int|int[] */ public $backoff; @@ -85,7 +85,7 @@ class WorkerOptions * Create a new worker options instance. * * @param string $name - * @param int $backoff + * @param int|int[] $backoff * @param int $memory * @param int $timeout * @param int $sleep