Skip to content

chore(qa): raise PHPStan to the max level - #45

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

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

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Branch: chore/phpstan-level-10, stacked on chore/phpstan-level-9.

What changed

1 error: the PHPDoc I wrote at level 6 for findWpRestRouteAttribute() (object{class: string}) was narrower than what discovery returns (DiscoveredAttribute); it now says array<DiscoveredAttribute>. phpstan.neon level: max; .harness.json phpstan_level is now "max" (what pollora-qa ratchet --update writes, the harness counts it as 10).
This brings wp-rest to the level of the harness profile (max).

Checked / not verified

0 errors at max; composer qa passes, coverage measured 100 % (recorded 99), type coverage 100 %. Semgrep not run; mutation not measured.

@ogorzalka
ogorzalka changed the base branch from chore/phpstan-level-9 to main November 25, 2026 12:22
@ogorzalka
ogorzalka merged commit ae99da9 into main Nov 25, 2026
10 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