Skip to content

Commit f9918e4

Browse files
committed
Added support for PHP 8.4.
1 parent 2152712 commit f9918e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/Tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
php:
18+
- 8.4
19+
- 8.3
1820
- 8.2
1921
- 8.1
2022
- 8.0

src/retry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @throws FailingTooHardException The maximum number of attempts was reached.
1818
* @throws \UnexpectedValueException The operation returned an unsupported type.
1919
*/
20-
function retry(int $tries, callable $operation, callable $onError = null): mixed
20+
function retry(int $tries, callable $operation, ?callable $onError = null): mixed
2121
{
2222
// Nothing to do if tries less than or equal to zero.
2323
if ($tries <= $attempts = 0) {

0 commit comments

Comments
 (0)