diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9e7f74..aba44fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,23 +12,27 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - php: [ '8.3', '8.2', '8.1' ] - os: [ 'ubuntu-latest' ] include: + - php: '8.3' + os: 'ubuntu-latest' + - php: '8.2' + os: 'ubuntu-latest' + - php: '8.1' + os: 'ubuntu-latest' - php: '8.0' - os: 'ubuntu-20.04' + os: 'ubuntu-24.04' - php: '7.4' - os: 'ubuntu-20.04' + os: 'ubuntu-24.04' fail-fast: false env: COVERAGE_CACHE_PATH: phpunit-coverage-cache PHP_VERSION: ${{ matrix.php }} steps: - - uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # v2.4.2 + - uses: actions/checkout@v4 - name: Set up PHP ${{ matrix.php }} - uses: shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # v2.28.0 + uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: pcov @@ -37,7 +41,7 @@ jobs: id: composer-cache run: | echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # v2.1.7 + - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -48,7 +52,7 @@ jobs: run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - name: Restore phpunit coverage cache - uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # v2.1.7 + uses: actions/cache@v4 with: path: ${{ env.COVERAGE_CACHE_PATH }} key: ${{ runner.os }}-coverage-${{ github.ref }}-${{ github.sha }} @@ -77,14 +81,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0 + - uses: actions/checkout@v4 - name: Get Composer Cache Directory id: composer-cache run: | echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11 + - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -101,13 +105,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v2.5.0 + - uses: actions/checkout@v4 - name: Get Composer Cache Directory id: composer-cache run: | echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11 + - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} diff --git a/phpstan.neon b/phpstan.neon index c8fede5..7700f11 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,6 +3,7 @@ includes: parameters: level: max reportUnmatchedIgnoredErrors: false + treatPhpDocTypesAsCertain: false exceptions: check: missingCheckedExceptionInThrows: true