whip icon indicating copy to clipboard operation
whip copied to clipboard

`Whip_RequirementsChecker::addRequirement()` loses requirements

Open schlessera opened this issue 7 years ago • 0 comments

The Whip_RequirementsChecker::addRequirement() method only adds requirements for a component if that component has not yet been added.

This should first compare the version requirements when dealing with duplicate components, and only keep the most strict version requirement.

Otherwise, if you add php >= 5.2 and then php >= 5.6, the 5.6 requirement is skipped because the component php was already added.

schlessera avatar Mar 08 '17 13:03 schlessera