Closed lcwj3 closed 5 years ago
dev branches are satisfying the constraint. But by default, the composer solver excludes dev versions (due to minimum-stability
being stable
by default).
Thanks for you kind and quick reply. So does this means I need to filter out stable versions before I parse the deps? Is there any other tool I can use to do this? Thank you very much!
Well, I don't know what you are trying to achieve, so I cannot tell you what you should do to achieve it.
You can easily exclude them using VersionParser::parseStability, keeping only 'stable' ones or whatever you are interested in.
So sorry for late reply, actually I am trying to build a dependency graph for php packages, that is why I need to parse the dependencies accurately, will try the VersionParser::parseStability, thank both of you so much! Will close this issue now.
I am trying to use satisfiedBy to parse php dependencies, somehow I found an error like this:
the dependencies of this library version is:
For all versions of symfony/filesystem, I parsed the deps like this:
The output is
3.3.x-dev|3.4.x-dev|3.4.32
but when I used composer update to install this aarontong00/zippy:1.3, the installed version of symfony/filesystem is 3.4.32. So I think the output of satisfiedBy shouldn't include the dev versions if the dev tags are not considered when install.