Parses a Composer version into numeric segments plus a trailing stability string.
v prefixes are stripped because Composer treats v1.2.3 and 1.2.3 as the same version, and a
lock file mixes both. A dev- branch has no numeric ordering at all, so it parses to no parts and
every comparison against it is unknown rather than false.
Parses a Composer version into numeric segments plus a trailing stability string.
vprefixes are stripped because Composer treatsv1.2.3and1.2.3as the same version, and a lock file mixes both. Adev-branch has no numeric ordering at all, so it parses to no parts and every comparison against it isunknownrather than false.