diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 8c54df41..375bff9f 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -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 @@ -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 }} @@ -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 \ No newline at end of file diff --git a/src/Fp/Functions/Callable/Compose.php b/src/Fp/Functions/Callable/Compose.php index 075cb4d6..c7b947d5 100644 --- a/src/Fp/Functions/Callable/Compose.php +++ b/src/Fp/Functions/Callable/Compose.php @@ -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]);