You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We so far did not implement these as their use is discouraged.
Using unbounded constraints like these is a disaster waiting to happen but I can see that we might have to support (read: at least understand) it.
Please consider it, I'm working on an open-source app that allows searching packagist for Symfony bundles that meet certain criteria (like at least php 8.2 and Symfony at least 6.4 or 7.0). I can assure you that LOTS of packages use this format, and even the composer docs talk about it.
When you write a version constraint, it may reference a specific tag (e.g., 1.1) or it may reference a valid range of tags (e.g., >=1.1 <2.0, or ~4.0).
I agree with you on the problems. In fact, many bundles are returned as being compatible with Symfony 7 because the constrait is ">= 2.2". Terrible.
BUT many of the php constraints do work, even php >= 7.2 often works, where php ^7.2 fails with PHP 8, even if php 8 works. And getting authors of these old libraries to accept PRs is often difficult.
I'm trying to parse the version string
on https://packagist.org/packages/antonchernik/logging-bundle,
The text was updated successfully, but these errors were encountered: