Skip to content

Commit

Permalink
'$backoff' can be an int or an array of int (#42516)
Browse files Browse the repository at this point in the history
Co-authored-by: Francescu Garoby <fgaroby@lepoint.fr>
  • Loading branch information
fgaroby and Francescu Garoby committed May 25, 2022
1 parent 00509bc commit 627376c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Jobs/Job.php
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion ListenerOptions.php
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions WorkerOptions.php
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 627376c

Please sign in to comment.