Skip to content

Fix tests

Fix tests #384

Workflow file for this run

name: Static Analysis
on:
push:
paths:
- '**.php'
- 'composer.json'
- 'composer.lock'
- 'phpstan.neon.dist'
jobs:
phpstan:
name: phpstan ${{ matrix.php }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 8.1, 8.2, 8.3 ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install composer dependencies
uses: ramsey/composer-install@v3
- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github