Skip to content

Commit fe77969

Browse files
committed
Fix the tests
1 parent 870dd31 commit fe77969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/Command/AddPrefixCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ private function retrieveConfig(InputInterface $input, OutputInterface $output,
374374
$config = Configuration::load();
375375

376376
if (null !== $prefix) {
377-
$config->withPrefix($prefix);
377+
$config = $config->withPrefix($prefix);
378378
}
379379

380380
if (null === $config->getPrefix()) {
@@ -443,7 +443,7 @@ private function retrieveConfig(InputInterface $input, OutputInterface $output,
443443
$config = $this->retrievePaths($input, $config);
444444

445445
if (null !== $prefix) {
446-
$config->withPrefix($prefix);
446+
$config = $config->withPrefix($prefix);
447447
}
448448

449449
if (null === $config->getPrefix()) {

0 commit comments

Comments
 (0)