Skip to content

Update wp-coding-standards/wpcs to 3.4.1 - #588

Open
obenland wants to merge 1 commit into
WordPress:developfrom
obenland:update/wpcs-3.4.1
Open

Update wp-coding-standards/wpcs to 3.4.1#588
obenland wants to merge 1 commit into
WordPress:developfrom
obenland:update/wpcs-3.4.1

Conversation

@obenland

@obenland obenland commented Jul 27, 2026

Copy link
Copy Markdown
Member

Migrates off the WPCS 2.x pin:

  • Bumps wp-coding-standards/wpcs from ^2.3 to ^3.4.1 and regenerates composer.lock.
  • Replaces WordPress.CodeAnalysis.EmptyStatement (removed in WPCS 3.0) with its upstreamed PHPCS equivalent Generic.CodeAnalysis.EmptyPHPStatement in phpcs.xml.dist — with the old reference, phpcs 3.x refuses to run.

CI runs phpunit only (composer run test), so this has no CI impact; the composer lint script works again after this change (it currently dies on the removed sniff once WPCS 3 is installed).

Part of an org-wide sweep to get all repos onto WPCS 3.4.1.

🤖 Generated with Claude Code

Note on CI: the Test Suite failures ("Install WordPress and initialize database", exit 127) are pre-existing — yesterday's Dependabot PRs fail the same step. Unrelated to this change.

Bumps the constraint from ^2.3 to ^3.4.1 and regenerates composer.lock.
Replaces WordPress.CodeAnalysis.EmptyStatement (removed in WPCS 3.0)
with its upstreamed equivalent Generic.CodeAnalysis.EmptyPHPStatement.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 27, 2026 19:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants