Skip to content

Add PHPStan CI workflow and fix all level 9 errors. #1

Add PHPStan CI workflow and fix all level 9 errors.

Add PHPStan CI workflow and fix all level 9 errors. #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
tools: composer:v2
coverage: none
- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: ~/.composer/cache
key: php-composer-locked-${{ hashFiles('composer.lock') }}
restore-keys: php-composer-locked-
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress
- name: PHPStan
run: vendor/bin/phpstan analyse --no-progress