Skip to content

Code quality: fix implicit null deprecations #3

Code quality: fix implicit null deprecations

Code quality: fix implicit null deprecations #3

name: PHPStan Baseline Check
on:
pull_request:
branches: [ main, master ]
paths:
- 'src/**/*.php'
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, intl
- name: Install dependencies
run: composer install --prefer-dist --no-progress --optimize-autoloader
- 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