Skip to content

Update phpstan.yml

Update phpstan.yml #8

Workflow file for this run

permissions:

Check failure on line 1 in .github/workflows/phpstan.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/phpstan.yml

Invalid workflow file

(Line: 25, Col: 14): Unexpected value ''
contents: read
name: PHPStan
on:
push:
paths:
- '**.php'
- 'phpstan.neon.dist'
pull_request:
paths:
- '**.php'
- 'phpstan.neon.dist'
jobs:
phpstan:
name: Static Analysis (PHPStan)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup PHP
uses: # uses: shivammathur/setup-php@20529878ed81ef8e78ddf08b480401e6101a850f
with:
php-version: '8.2'
extensions: mbstring, json
coverage: none
- name: Install dependencies (if needed)
run: |
if [ -f composer.json ]; then
composer install --no-interaction --prefer-dist
fi
- name: Run PHPStan
run: vendor/bin/phpstan analyse --configuration=phpstan.neon.dist