Picks a version from a composer p2 document: newest stable unless the constraint says otherwise. Both registries list newest first, so the first match wins without sorting.
p2
Optional
Picks a version from a composer
p2document: newest stable unless the constraint says otherwise. Both registries list newest first, so the first match wins without sorting.