Code quality: fix implicit null deprecations #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PHPStan Baseline Check | |
| on: | |
| pull_request: | |
| branches: [ main, master ] | |
| paths: | |
| - 'src/**/*.php' | |
| jobs: | |
| phpstan: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php-version: ['8.4'] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-version }} | |
| extensions: dom, json, libxml | |
| coverage: xdebug | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-php-${{ matrix.php-version }}- | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Generate PHPStan baseline (if not exists) | |
| run: | | |
| if [ ! -f phpstan-baseline.neon.dist ]; then | |
| vendor/bin/phpstan analyse --generate-baseline | |
| fi | |
| - name: Run PHPStan with baseline | |
| run: vendor/bin/phpstan analyse --error-format=github |