Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/lint-and-analyse-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ jobs:
- name: Install Composer dependencies
uses: ramsey/composer-install@v3

- name: Cache PHPStan result cache
uses: actions/cache@v5
with:
path: var/cache/phpstan
key: phpstan-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('composer.lock', 'phpstan.neon', 'phpstan_next.neon') }}
restore-keys: |
phpstan-${{ runner.os }}-${{ matrix.php-version }}-

- name: Analyse files with PHPStan
run: composer phpstan -- --error-format=github --no-progress --memory-limit 2G

Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ includes:
parameters:
level: 2
errorFormat: prettyJson
tmpDir: var/cache/phpstan/base
treatPhpDocTypesAsCertain: false
paths:
- Controls
Expand Down
1 change: 1 addition & 0 deletions phpstan_next.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ includes:
parameters:
level: 3
errorFormat: prettyJson
tmpDir: var/cache/phpstan/next
treatPhpDocTypesAsCertain: false
paths:
- Controls
Expand Down