Skip to content

Raise wp-cli/wp-cli minimum requirement to ^2.13#214

Merged
swissspidy merged 2 commits into
mainfrom
copilot/fix-cache-flush-php-error
Jun 25, 2026
Merged

Raise wp-cli/wp-cli minimum requirement to ^2.13#214
swissspidy merged 2 commits into
mainfrom
copilot/fix-cache-flush-php-error

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

WP_CLI\Path was introduced in WP-CLI 2.13.0, but composer.json declared wp-cli/wp-cli ^2.12, allowing installations with 2.12.x where the class doesn't exist. Running wp doctor check cache-flush (and other checks using path normalization) would fatal with Class "WP_CLI\Path" not found.

Changes

  • composer.json: Bump wp-cli/wp-cli requirement from ^2.12 to ^2.13 to accurately reflect the minimum version that provides WP_CLI\Path

…h class

Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix fatal error in cache flush check command Raise wp-cli/wp-cli minimum requirement to ^2.13 Jun 25, 2026
Copilot AI requested a review from swissspidy June 25, 2026 12:15
@swissspidy swissspidy added this to the 2.3.2 milestone Jun 25, 2026
@swissspidy swissspidy marked this pull request as ready for review June 25, 2026 13:00
@swissspidy swissspidy requested a review from a team as a code owner June 25, 2026 13:00
Copilot AI review requested due to automatic review settings June 25, 2026 13:00

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.

Pull request overview

This PR aligns the package’s declared WP-CLI dependency with its actual runtime requirement by raising the minimum wp-cli/wp-cli version to one that includes WP_CLI\Path, preventing fatals on installs using WP-CLI 2.12.x.

Changes:

  • Bump wp-cli/wp-cli from ^2.12 to ^2.13 in composer.json so WP_CLI\Path is guaranteed to exist at runtime.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy swissspidy merged commit cbd2be5 into main Jun 25, 2026
63 checks passed
@swissspidy swissspidy deleted the copilot/fix-cache-flush-php-error branch June 25, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:doctor-check Related to 'doctor check' command scope:testing Related to testing state:unconfirmed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants