ci: upgrade PHPStan to v2 with baseline and full codebase coverage

- Upgrade phpstan/phpstan from 1.12.* to ^2.0
- Raise analysis level to max
- Expand paths from 3 specific dirs to src/, app/, bin/, tests/
- Generate baseline capturing 95,365 existing errors for incremental adoption
- Rename composer script from `check` to `analyze`
- Add --memory-limit=1G to handle larger scan scope

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
loks0nandClaude Sonnet 4.6 committed 2026-03-15 17:49:49 +00:00
1 parent aefa51f261
commit 937d94972f
5 files changed
+83245 -14

No files matched your search

+1 -1
View File
@@ -116,7 +116,7 @@ jobs:
- name: Run PHPStan
run: |
docker run --rm -v $PWD:/app composer:2.8 sh -c \
"composer install --profile --ignore-platform-reqs && composer check"
"composer install --profile --ignore-platform-reqs && composer analyze"
- name: Run Locale check
run: |