Skip to content

Commit 70bc41e

Browse files
authored
fix(Queue): Update return type annotation for getDelay() method (#1238)
1 parent 3d1055a commit 70bc41e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Queue/src/RetryPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(int $maxAttempts, int $delay, float $multiplier = 1)
5252
/**
5353
* @param int<0, max> $attempts
5454
*
55-
* @return positive-int
55+
* @return int<0, max>
5656
*/
5757
public function getDelay(int $attempts = 0): int
5858
{

src/Queue/src/RetryPolicyInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function isRetryable(\Throwable $exception, int $attempts = 0): bool;
1414
/**
1515
* @param int<0, max> $attempts
1616
*
17-
* @return positive-int
17+
* @return int<0, max> Delay in seconds
1818
*/
1919
public function getDelay(int $attempts = 0): int;
2020
}

0 commit comments

Comments
 (0)