-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
auto:reproductionA minimal reproduction is necessary to proceedA minimal reproduction is necessary to proceeddatasource:packagisthelp wantedHelp is needed or welcomed on this issueHelp is needed or welcomed on this issuemanager:composerComposer (PHP) package managerComposer (PHP) package managerpriority-3-mediumDefault priority, "should be done" but isn't prioritised ahead of othersDefault priority, "should be done" but isn't prioritised ahead of othersstatus:requirementsFull requirements are not yet known, so implementation should not be startedFull requirements are not yet known, so implementation should not be started
Description
As described in #1357 (comment), we need to support restricting updates according to the platform version, e.g. php <= 5.6.
Because our lookups are done independently of composer, we need to reproduce the logic that composer uses to determine if a newer version is compatible.
Steps:
-
When parsing the
composer.jsonfile, determine if it includes aphpfield underplatform -
Pass the
phprestriction to the packagist datasource lookup -
Packagist datasource should return only compatible versions
fnkr, HLeithner, djmattyg007 and colinodell
Metadata
Metadata
Assignees
Labels
auto:reproductionA minimal reproduction is necessary to proceedA minimal reproduction is necessary to proceeddatasource:packagisthelp wantedHelp is needed or welcomed on this issueHelp is needed or welcomed on this issuemanager:composerComposer (PHP) package managerComposer (PHP) package managerpriority-3-mediumDefault priority, "should be done" but isn't prioritised ahead of othersDefault priority, "should be done" but isn't prioritised ahead of othersstatus:requirementsFull requirements are not yet known, so implementation should not be startedFull requirements are not yet known, so implementation should not be started