Skip to content

chore(qa): raise PHPStan to level 6 - #41

Merged
ogorzalka merged 3 commits into
mainfrom
chore/phpstan-level-6
Nov 25, 2026
Merged

ogorzalka merged 3 commits into
mainfrom
chore/phpstan-level-6

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Branch: chore/phpstan-level-6 (base main). Stack: 6 -> 7 -> 8 -> 9 -> 10 (max), one PR each.

What changed

7 errors, all PHPDoc: 6 missingType.iterableValue (WpGlobals::wrap()/setEssentialGlobals()/getEssentialGlobals() as array<int, string>, the discovery's wrapper cache, findWpRestRouteAttribute(), extractArgsFromRoute()) and 1 missingType.generics (ReflectionAttribute<object>). .harness.json via pollora-qa ratchet --update.
WpGlobals is public: only its PHPDoc is refined, with the widest type that was already true (array<int, string>), no signature change.

Checked

0 errors, baseline 0, pest 75 pass + 1 incomplete (also on main). composer qa passes.

Not verified

Semgrep not run locally; mutation score not measured.

@ogorzalka
ogorzalka merged commit 5c52fea into main Nov 25, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant