From 2740c43d5270a3433b441cf0c8304b9f6e104015 Mon Sep 17 00:00:00 2001 From: "Libor M." Date: Wed, 13 Nov 2024 16:00:55 +0100 Subject: [PATCH] Fix compatibility with phpstan 1.x --- .github/workflows/static-analysis.yml | 5 +++++ 1 file changed, 5 insertions(+) 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