Skip to content

Commit 441f75e

Browse files
author
Igor Vitol
committed
Do not override disabled modules in blackfire config
1 parent dc58ec5 commit 441f75e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Config/Source/CliSource.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public function __construct(InputInterface $input)
141141
public function read(): Repository
142142
{
143143
$repository = new Repository();
144+
$disabledExtensions = [];
144145

145146
if ($mode = $this->input->getOption(self::OPTION_MODE)) {
146147
$repository->set([
@@ -236,7 +237,7 @@ public function read(): Repository
236237
}
237238

238239
if ($this->input->getOption(self::OPTION_WITHOUT_BLACKFIRE)) {
239-
$repository->set(self::PHP_DISABLED_EXTENSIONS, ['blackfire' => 'blackfire']);
240+
$disabledExtensions['blackfire'] = 'blackfire';
240241
}
241242

242243
if ($this->input->getOption(self::OPTION_SET_DOCKER_HOST_XDEBUG)) {
@@ -303,6 +304,7 @@ public function read(): Repository
303304
$repository->set(self::SYSTEM_MAILHOG_HTTP_PORT, $port);
304305
}
305306

307+
$repository->set(self::PHP_DISABLED_EXTENSIONS, $disabledExtensions);
306308
return $repository;
307309
}
308310
}

0 commit comments

Comments
 (0)