Skip to content

Commit 414e464

Browse files
authored
Merge pull request #131 from magento-commerce/MCLOUD-11536
MCLOUD-11536: Fix bin/ece-docker image:generate:php command composer versions
2 parents 163a02c + 6de1359 commit 414e464

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Command/Image/GeneratePhp.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ private function getComposerVersion(string $phpVersion) : string
342342
{
343343
if ($this->semver::satisfies($phpVersion, '<8.0')) {
344344
return '1.10.22';
345+
} else if ($this->semver::satisfies($phpVersion, '<=8.2')) {
346+
return '2.2.23';
347+
} else {
348+
return '2.7.0';
345349
}
346-
347-
return $this->semver::satisfies($phpVersion, '<8.2') ? '2.1.14' : '2.2.18';
348350
}
349351
}

0 commit comments

Comments
 (0)