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
I suspect that I'm missing something, because this seems like too much of a bug for me to have been the first one to have noticed it. Am I missing something?
The text was updated successfully, but these errors were encountered:
Well, composer supports 4 segments in the version since day one. Reducing that to 3 segments only would be a huge risk for the ecosystem.
The goal of normalizing versions to always have the same number of segments is because PHP's version_compare does not handle properly comparing versions with different number of segments.
I find that running
$version_parser->normalize('1.30.1');
will return1.30.1.0
. That's not valid SemVer. It stems from this:semver/src/VersionParser.php
Line 138 in 3953f23
I suspect that I'm missing something, because this seems like too much of a bug for me to have been the first one to have noticed it. Am I missing something?
The text was updated successfully, but these errors were encountered: