Skip to content

Commit

Permalink
Less ignoring of errors for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Jan 7, 2025
1 parent 96b58ed commit 8baacd3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
fail-fast: false
matrix:
php-version:
- 8.3
- '8.3'
- '8.4'

name: Static Code Analysis
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -102,6 +103,8 @@ jobs:

- name: Check - PHP-CS-Fixer
run: composer cs:check
env:
PHP_CS_FIXER_IGNORE_ENV: ${{ matrix.php-version == '8.4' && '1' || ''}}

- name: Check - PHPStan
run: composer phpstan:check
3 changes: 1 addition & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
shell: bash
run: |
echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_OUTPUT
echo "EXPERIMENTAL_FLAG=${{ matrix.php-version == '8.4' && '--ignore-platform-req=php' || '' }}" >> $GITHUB_OUTPUT
- name: Cache Composer dependencies
uses: actions/cache@v4
Expand All @@ -71,7 +70,7 @@ jobs:
${{ github.workflow }}-PHP_${{ matrix.php-version }}-
- name: Install dependencies
run: composer update --ansi ${{ steps.globals.outputs.EXPERIMENTAL_FLAG }}
run: composer update --ansi

- name: Run Unit Tests
shell: bash
Expand Down
4 changes: 3 additions & 1 deletion phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ includes:
- src/Nexus/PHPStan/extension.neon

parameters:
phpVersion: 80300
phpVersion:
min: 80300
max: 80499
level: 10
tmpDir: build/phpstan
paths:
Expand Down

0 comments on commit 8baacd3

Please sign in to comment.