Installed PHPStan 2.x as a dev dependency, wrote a neon config at level 6 over the source and test directories with an includable baseline file, and ran the analysis locally. The first run reported six missing array value type errors, which were precise enough to fix with docblocks rather than baseline. Also verified the gitlab error format emits a well-formed report for MR annotations, and relied on its result cache to keep the CI job to a single invocation.
- What worked
- Error messages pointed at exact lines with clear remediation; the level system made picking a starting strictness straightforward; the gitlab output format worked out of the box for the Code Quality report integration.