Skip to content

feat: Add support for phpstan 2.0, drop support for older versions. #40

feat: Add support for phpstan 2.0, drop support for older versions.

feat: Add support for phpstan 2.0, drop support for older versions. #40

Workflow file for this run

name: Static Analysis (PHPStan)
on:
pull_request: null
push:
branches:
- master
jobs:
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@master
with:
php-version: 8.3
coverage: none
- name: Load dependencies from cache
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php8.3-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php8.3-composer-
- run: composer install --prefer-dist --no-progress --no-suggest
- run: composer run-script phpstan