Skip to content

Commit 93eee66

Browse files
authored
Merge pull request #52 from InnoT20/master
Fix php8.4 deprecations
2 parents 08087b7 + e00bd38 commit 93eee66

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.github/workflows/php.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v2
1414

15-
- name: Install dependencies
16-
run: composer install --prefer-dist --no-progress
15+
- name: Install dependencies
16+
run: composer install --prefer-dist --no-progress
1717

18-
- name: Cache Composer dependencies
19-
id: composer-cache
20-
uses: actions/cache@v2
21-
with:
22-
path: vendor
23-
key: ${{ runner.os }}-php-${{ github.sha }}
18+
- name: Cache Composer dependencies
19+
id: composer-cache
20+
uses: actions/cache@v3
21+
with:
22+
path: vendor
23+
key: ${{ runner.os }}-php-${{ github.sha }}
2424

2525
psalm:
2626
runs-on: ubuntu-latest
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v2
3131
- name: Restore cached composer dependencies
3232
id: composer-cache
33-
uses: actions/cache@v2
33+
uses: actions/cache@v3
3434
with:
3535
path: vendor
3636
key: ${{ runner.os }}-php-${{ github.sha }}
@@ -52,18 +52,18 @@ jobs:
5252

5353
- name: Restore cached composer dependencies
5454
id: composer-cache
55-
uses: actions/cache@v2
55+
uses: actions/cache@v3
5656
with:
5757
path: vendor
5858
key: ${{ runner.os }}-php-${{ github.sha }}
5959

6060
- name: Run test suite
6161
run: php vendor/bin/phpunit
62-
63-
# - name: Check PhpUnit coverage percentage
64-
# run: php vendor/bin/coverage-check build/logs/clover.xml 85
62+
63+
# - name: Check PhpUnit coverage percentage
64+
# run: php vendor/bin/coverage-check build/logs/clover.xml 85
6565

6666
- name: Upload coverage results to Coveralls
6767
env:
6868
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69-
run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
69+
run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v

src/Fp/Functions/Callable/Compose.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@
6363
function compose(
6464
callable $aToB,
6565
callable $bToC,
66-
callable $cToD = null,
67-
callable $dToF = null,
68-
callable $fToG = null,
69-
callable $gToH = null,
70-
callable $hToI = null,
71-
callable $iToJ = null,
72-
callable $jToK = null,
73-
callable $kToL = null,
66+
?callable $cToD = null,
67+
?callable $dToF = null,
68+
?callable $fToG = null,
69+
?callable $gToH = null,
70+
?callable $hToI = null,
71+
?callable $iToJ = null,
72+
?callable $jToK = null,
73+
?callable $kToL = null,
7474
): callable
7575
{
7676
$callableChain = filterNotNull([$aToB, $bToC, $cToD, $dToF, $fToG, $gToH, $hToI, $iToJ, $jToK, $kToL]);

0 commit comments

Comments
 (0)