Skip to content

Commit 32904d1

Browse files
MCLOUD-13209: Added fix in PHP extension version check condition
1 parent 0762c25 commit 32904d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Compose/Php/ExtensionResolver.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function get(Config $config): array
131131

132132
foreach ($phpExtensions as $phpExtName) {
133133
if (isset(self::BUILTIN_EXTENSIONS[$phpExtName])
134-
&& $this->semver::satisfies($phpVersion, (float) self::BUILTIN_EXTENSIONS[$phpExtName])
134+
&& $this->semver::satisfies($phpVersion, self::BUILTIN_EXTENSIONS[$phpExtName])
135135
) {
136136
continue;
137137
}
@@ -496,7 +496,9 @@ public static function getConfig(): array
496496
],
497497
],
498498
'ftp' => [
499-
'>=8.4' => [self::EXTENSION_TYPE => self::EXTENSION_TYPE_CORE],
499+
'>=8.2' => [
500+
self::EXTENSION_TYPE => self::EXTENSION_TYPE_CORE,
501+
],
500502
],
501503
];
502504
}

0 commit comments

Comments
 (0)