From 52042f1de3e0676f687964dbf5451354d2ed5242 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..1af4259 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: | + sed -i ':a;$!N;1,12ba;P;$d;D' phpstan.neon + - name: Run PHPStan run: | php vendor/bin/phpstan.phar --version