Skip to content

Conversation

@dcmbrs
Copy link

@dcmbrs dcmbrs commented Jan 22, 2026

  • This change updates the Composer constraint parser to correctly handle version constraints using a single pipe (|) as a logical OR.
    The tool now treats | and || equivalently, aligning its behavior with Composer’s semver implementation and ensuring backward compatibility.
    Composer doc : https://getcomposer.org/doc/articles/versions.md
    Composer regex "OR" : https://github.com/composer/semver/blob/main/src/VersionParser.php#L278

  • Several existing Composer projects define PHP version constraints using a single pipe operator (e.g. ^7.1 | ^8.0), which is valid and supported by Composer.
    Previously, such configurations were not correctly interpreted by the tool, leading to incorrect PHP version selection or failures.
    This change ensures that projects relying on this syntax are handled correctly without requiring configuration changes.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 22, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: dcmbrs / name: mitri (3429ce1)

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.

1 participant