Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Cache Composer dependencies
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ github.sha }}
- name: Cache Composer dependencies
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ github.sha }}

psalm:
runs-on: ubuntu-latest
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v2
- name: Restore cached composer dependencies
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ github.sha }}
Expand All @@ -52,18 +52,18 @@ jobs:

- name: Restore cached composer dependencies
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ github.sha }}

- name: Run test suite
run: php vendor/bin/phpunit

# - name: Check PhpUnit coverage percentage
# run: php vendor/bin/coverage-check build/logs/clover.xml 85
# - name: Check PhpUnit coverage percentage
# run: php vendor/bin/coverage-check build/logs/clover.xml 85

- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
run: php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
16 changes: 8 additions & 8 deletions src/Fp/Functions/Callable/Compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
function compose(
callable $aToB,
callable $bToC,
callable $cToD = null,
callable $dToF = null,
callable $fToG = null,
callable $gToH = null,
callable $hToI = null,
callable $iToJ = null,
callable $jToK = null,
callable $kToL = null,
?callable $cToD = null,
?callable $dToF = null,
?callable $fToG = null,
?callable $gToH = null,
?callable $hToI = null,
?callable $iToJ = null,
?callable $jToK = null,
?callable $kToL = null,
): callable
{
$callableChain = filterNotNull([$aToB, $bToC, $cToD, $dToF, $fToG, $gToH, $hToI, $iToJ, $jToK, $kToL]);
Expand Down