Skip to content

Commit 09ed067

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

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/Tests.yaml

Lines changed: 4 additions & 2 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
@@ -23,7 +25,7 @@ jobs:
2325
- lo
2426

2527
steps:
26-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v4
2729

2830
- name: Setup PHP ${{ matrix.php }}
2931
uses: shivammathur/setup-php@v2
@@ -36,7 +38,7 @@ jobs:
3638

3739
- name: Cache dependencies
3840
id: composer-cache
39-
uses: actions/cache@v2
41+
uses: actions/cache@v4
4042
with:
4143
path: vendor
4244
key: php-${{ matrix.php }}-${{ matrix.dependencies }}-${{ hashFiles('composer.json') }}

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)