Skip to content

Upgrade wp-cli-tests to v5#21

Merged
JanJakes merged 1 commit intomainfrom
fix/composer-dependency-conflict
Feb 24, 2026
Merged

Upgrade wp-cli-tests to v5#21
JanJakes merged 1 commit intomainfrom
fix/composer-dependency-conflict

Conversation

@JanJakes
Copy link
Contributor

@JanJakes JanJakes commented Feb 24, 2026

Summary

The dev-develop branch of phpcompatibility/php-compatibility now requires squizlabs/php_codesniffer ^4, which conflicts with ^3 required by wp-cli-tests v4. This breaks all CI jobs. Additionally, the shared CI workflow (wp-cli/.github#208) now runs code coverage on PHP 8.5, which needs the newer php-code-coverage library from v5.

Changes

  • Upgrade wp-cli-tests: From ^4.3.2 to ^5.0, resolving the codesniffer version conflict and adding PHP 8.5 coverage support.
  • Add transitive deps with stability flags: phpcompatibility/php-compatibility ^10.0@alpha and wp-coding-standards/wpcs @dev, since these packages don't have stable releases compatible with codesniffer ^4 yet.
  • Add PHPStan config: Required by wp-cli-tests v5. Starts at level 0 with stubs for WP_SQLite_Driver, WP_SQLite_Translator, and WP_SQLite_Connection (loaded at runtime by WordPress, not available via Composer).
  • Allow phpstan/extension-installer: New Composer plugin required by wp-cli-tests v5.

@JanJakes JanJakes force-pushed the fix/composer-dependency-conflict branch from fdd9f48 to 188328c Compare February 24, 2026 09:22
@JanJakes JanJakes changed the title Upgrade wp-cli-tests to v5 to fix Composer dependency conflict Pin phpcompatibility/php-compatibility to 9.3.5 Feb 24, 2026
@JanJakes JanJakes force-pushed the fix/composer-dependency-conflict branch from 188328c to 6fd70ff Compare February 24, 2026 09:46
@JanJakes JanJakes changed the title Pin phpcompatibility/php-compatibility to 9.3.5 Upgrade wp-cli-tests to v5 Feb 24, 2026
The dev-develop branch of phpcompatibility/php-compatibility now
requires squizlabs/php_codesniffer ^4, which conflicts with the
^3 required by wp-cli-tests v4. Additionally, the shared CI
workflow (wp-cli/.github#208) now runs code coverage on PHP 8.5,
which needs the newer php-code-coverage library from v5.

Changes:
- Upgrade wp-cli/wp-cli-tests from ^4.3.2 to ^5.0.
- Add phpcompatibility/php-compatibility ^10.0@alpha and
  wp-coding-standards/wpcs @dev to satisfy transitive deps
  that lack stable releases.
- Add phpstan script and config, required by wp-cli-tests v5.
- Add stubs for WP_SQLite_Driver, WP_SQLite_Translator, and
  WP_SQLite_Connection (loaded at runtime by WordPress, not
  available via Composer).
- Allow phpstan/extension-installer Composer plugin.
Copy link
Member

@sejas sejas left a comment

Choose a reason for hiding this comment

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

@JanJakes, thanks for updating the composer dependencies and fixing the CI. Changes look good and everything is green.

@JanJakes JanJakes merged commit 5821f83 into main Feb 24, 2026
54 checks passed
@JanJakes JanJakes deleted the fix/composer-dependency-conflict branch February 24, 2026 20:58
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