Skip to content

chore(stan): bump PHPStan level 5 → 6 with baseline (PR D)#24

Merged
oxyc merged 1 commit into
masterfrom
chore/phpstan-level-6
May 29, 2026
Merged

chore(stan): bump PHPStan level 5 → 6 with baseline (PR D)#24
oxyc merged 1 commit into
masterfrom
chore/phpstan-level-6

Conversation

@oxyc

@oxyc oxyc commented May 29, 2026

Copy link
Copy Markdown
Member

Companion to gds-assistant PR #40. Same pattern.

390 new errors at level 6 — almost all level-6's "no value type specified in iterable type array". Captured in phpstan-baseline.neon; new code held to level 6, existing code burns down progressively (see #23).

The volume is higher than gds-assistant (390 vs 198) because gds-mcp has a larger surface area of REST-delegated CRUD on top of WordPress's already-untyped array shapes.

Verification

  • composer stan: 0 errors at level 6 (with baseline)

Follow-up: #23 tracks the burn-down.

🤖 Generated with Claude Code

Almost all 390 new errors are level-6's missing iterable-value-type
annotations on `array` PHPDocs. Captured in `phpstan-baseline.neon`
so new code is held to level 6 in CI while existing code burns down at a
sustainable pace.

See #23 for the burn-down plan.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@oxyc oxyc merged commit 70181c3 into master May 29, 2026
2 checks passed
@oxyc oxyc deleted the chore/phpstan-level-6 branch May 29, 2026 18:54
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