Skip to content

fix: do not use removed parameter kernel.root_dir #115

fix: do not use removed parameter kernel.root_dir

fix: do not use removed parameter kernel.root_dir #115

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
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: "8.3"
tools: cs2pr
- name: Cache dependencies installed with composer
uses: actions/cache@v3
with:
path: "~/.composer/cache"
key: php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}
restore-keys: php-${{ matrix.php-version }}-composer-locked-
- name: Install dependencies with composer
run: composer update --no-progress --no-suggest --no-interaction --prefer-dist
- 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