Skip to content

Tooling: Add WPCompat analysis. - #148

Merged
JJJ merged 2 commits into
masterfrom
tooling/wpcompat-wordpress-stubs
Oct 2, 2026
Merged

JJJ merged 2 commits into
masterfrom
tooling/wpcompat-wordpress-stubs

Conversation

@JJJ

@JJJ JJJ commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Introduce PHPStan level 7 with a canonical baseline for existing debt, then use WordPress 7.1 stubs for current API signatures while WPCompat checks unguarded API usage against the plugin's declared WordPress 6.4 minimum.

The shared CI and release callers are pinned to the reviewed central contract.

JJJ added 2 commits October 2, 2026 03:05
Introduce PHPStan level 7 with a canonical baseline for existing debt. Use current WordPress stubs while WPCompat enforces the declared WordPress 6.4 floor.
@JJJ
JJJ marked this pull request as ready for review October 2, 2026 08:51
Copilot AI balanced review requested due to automatic review settings October 2, 2026 08:51
@JJJ
JJJ merged commit 8e6880b into master Oct 2, 2026
15 checks passed
@JJJ
JJJ deleted the tooling/wpcompat-wordpress-stubs branch October 2, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Changes to centrally managed CI and release publishing contracts require final human validation.

Review effort: Balanced
Findings: None

What changed in this PR

Introduces PHPStan level 7 and WPCompat analysis while preserving the WordPress 6.4 compatibility target.

Changes:

  • Adds PHPStan/WPCompat configuration and an existing-debt baseline.
  • Adds locked analysis dependencies and a Composer script.
  • Updates managed CI/release contracts and release-note verification inputs.
File Description
phpstan.neon.dist Configures PHPStan, WordPress stubs, and WPCompat.
phpstan-baseline.neon Records existing static-analysis debt.
composer.json Adds analysis dependencies and script.
composer.lock Locks the new dependencies.
.github/​workflows/​ci.yml Pins the updated shared CI contract.
.github/​workflows/​release.yml Pins release automation and reviewed-note inputs.
.gitattributes Excludes analysis configuration from release archives.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants