Skip to content

Commit

Permalink
Fix compatibility with phpstan 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Nov 13, 2024
1 parent 0b19004 commit 8f43ce6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ':a;$!N;1,12ba;P;$d;D' phpstan.neon | tee phpstan.neon
- name: Run PHPStan
run: |
php vendor/bin/phpstan.phar --version
Expand Down

0 comments on commit 8f43ce6

Please sign in to comment.