Skip to content

Commit

Permalink
Merge pull request #47 from edersoares/avoid-break
Browse files Browse the repository at this point in the history
Avoid break json schema
  • Loading branch information
edersoares authored Aug 22, 2023
2 parents cfdb4af + 2ef39f4 commit 7975e57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Composer/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,17 @@ private function loadComposerPackageFile(IOInterface $io, array &$plugged, array
$plugged[] = $package;
}

# TODO improve next lines
if (isset($packagesConfig['minimum-stability'])) {
$localConfig['minimum-stability'] = $packagesConfig['minimum-stability'];
unset($packagesConfig['minimum-stability']);
}

if (isset($packagesConfig['prefer-stable'])) {
$localConfig['prefer-stable'] = $packagesConfig['prefer-stable'];
unset($packagesConfig['prefer-stable']);
}

$localConfig = array_merge_recursive($localConfig, $packagesConfig);
}

Expand Down

0 comments on commit 7975e57

Please sign in to comment.