1
0

chore: upgrade PHPStan to 2.x and add unused-public dead code detection

- Upgrade phpstan/phpstan 1.12 → 2.1
- Add tomasvotruba/unused-public 2.2 for automatic dead code detection
- Generate baseline (486 existing findings) to keep CI green
- Remove stale @phpstan-ignore annotation in login page (ternary.alwaysFalse)
- New code is fully checked against PHPStan 2 + unused-public rules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-14 09:02:43 +02:00
parent 94b746ddf8
commit a736566071
5 changed files with 2804 additions and 29 deletions

View File

@@ -1,3 +1,7 @@
includes:
- vendor/tomasvotruba/unused-public/config/extension.neon
- phpstan-baseline.neon
parameters:
level: 5
phpVersion: 80499