Skip to content

Commit da4502b

Browse files
committed
fix(Queue): Update return type annotation for getDelay() method (#1238)
1 parent e58978b commit da4502b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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/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)