Skip to content

Conversation

@tasuku43
Copy link
Contributor

Summary

  • Fix CI failure for PHP 7.2 by using Composer 2.2 instead of Composer 2

Problem

PHP 7.2 CI was failing with:

Root composer.json requires phpunit/phpunit ^6.0 || ^9.0 -> satisfiable by phpunit/phpunit[9.6.33, 9.6.34].
phpunit/phpunit[9.6.33, ..., 9.6.34] require php >=7.3 -> your php version (7.2.34) does not satisfy that requirement.

Composer 2.x (latest ~2.8) has different dependency resolution behavior than Composer 2.2 (LTS) and fails to resolve PHPUnit 6.x for PHP 7.2.

Solution

Use Composer 2.2 for PHP 7.2, aligning it with PHP 7.0 and 7.1 which already use Composer 2.2.

Test plan

  • CI passes for all PHP versions including 7.2

🤖 Generated with Claude Code

PHP 7.2 CI was failing because Composer 2.x (latest ~2.8) cannot resolve
PHPUnit 6.x dependency correctly, while Composer 2.2 (LTS) can.

This aligns PHP 7.2 with PHP 7.0 and 7.1 which already use Composer 2.2.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tasuku43 tasuku43 closed this Jan 28, 2026
@tasuku43 tasuku43 deleted the fix/php72-composer-version branch January 28, 2026 03:28
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