Commit 920e1f2
Add PHPStan level-8 static analysis with composer analyse and lint scripts
PHPStan at level 8 (the strictest) is added as a dev dependency with a
phpstan.neon targeting the src/ directory. Two new composer scripts make
common quality tasks discoverable without reading docs: `composer analyse`
runs static analysis and `composer lint` checks PHP syntax across src/
and tests/. This catches type errors, dead code, and unsafe operations
before they reach CI.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ef68658 commit 920e1f2
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments