Skip to content

Commit

Permalink
Merge pull request laminas#75 from laminas/1.11.x-merge-up-into-1.12.…
Browse files Browse the repository at this point in the history
…x_2Hx0v3xy

Merge release 1.11.5 into 1.12.x
  • Loading branch information
Ocramius committed Jan 20, 2022
2 parents 71aa5be + a380ce3 commit b5ab804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ function gatherVersions(composerJson) {
}

let versions = [];
let composerPhpVersion = composerJson['require']['php'].replace(/,\s/i, ' ');

INSTALLABLE_VERSIONS.forEach(function (version) {
if (semver.satisfies(version + '.0', composerJson['require']['php'])) {
if (semver.satisfies(version + '.0', composerPhpVersion)) {
versions.push(version);
}
});
Expand Down

0 comments on commit b5ab804

Please sign in to comment.