diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index c7cf42d..5745b07 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -29,6 +29,11 @@ jobs: composer require phpstan/phpstan --dev --no-update composer install --prefer-dist --no-progress + - name: Fix compatibility with phpstan 1.x + if: ${{ matrix.php == '7.2' || matrix.php == '7.3' }} + run: | + head -n -12 phpstan.neon + - name: Run PHPStan run: | php vendor/bin/phpstan.phar --version