Skip to content

Remove return type to prevent PHP-CS fix errors #65

Remove return type to prevent PHP-CS fix errors

Remove return type to prevent PHP-CS fix errors #65

Workflow file for this run

name: PHPStan
on:
push:
paths:
- '**.php'
- 'phpstan.neon'
jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
strategy:
matrix:
php: [ "8.1", "8.3" ]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pspell, intl, iconv
coverage: none
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('composer.lock') }}
- name: Run composer install
run: composer install -n --prefer-dist
- name: Run PHPStan
run: ./vendor/bin/phpstan analyse src -c phpstan.neon