Skip to content

chore: support doctrine-extra 3.0 #34

chore: support doctrine-extra 3.0

chore: support doctrine-extra 3.0 #34

Workflow file for this run

name: PHPStan
on:
push:
pull_request:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
name: Static analysis
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: "8.2"
tools: cs2pr
- name: Install dependencies with composer
run: composer install
- if: ${{ github.base_ref == '' }}
run: composer phpstan
- name: Run a static analysis with phpstan/phpstan
if: ${{ github.base_ref != '' }}
run: composer phpstan -- --error-format=checkstyle | cs2pr