Skip to content

Commit 6de1359

Browse files
committed
Fix bin/ece-docker image:generate:php command composer versions
1 parent 163a02c commit 6de1359

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Command/Image/GeneratePhp.php

Lines changed: 4 additions & 2 deletions
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)