Skip to content

Commit 3f89fdb

Browse files
authored
MCLOUD-5797: Fix for compose build failing if Blackfire configuration present (#199)
1 parent c90bda0 commit 3f89fdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Compose/Php/ExtensionResolver.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,12 @@ public function __construct(Semver $semver)
110110
public function get(Config $config): array
111111
{
112112
$phpVersion = $config->getServiceVersion(ServiceInterface::SERVICE_PHP);
113+
$enabledPhpExtensions = [];
114+
foreach ($config->getEnabledPhpExtensions() as $phpExtension) {
115+
is_array($phpExtension) ? : array_push($enabledPhpExtensions, $phpExtension);
116+
}
113117
$enabledExtensions = array_unique(
114-
array_merge(self::DEFAULT_PHP_EXTENSIONS, $config->getEnabledPhpExtensions())
118+
array_merge(self::DEFAULT_PHP_EXTENSIONS, $enabledPhpExtensions)
115119
);
116120
$phpExtensions = array_diff(
117121
$enabledExtensions,

0 commit comments

Comments
 (0)