mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
fix: recursively merge default values
This commit is contained in:
parent
afb630c93e
commit
8eb8a9d6e3
|
@ -9,6 +9,7 @@
|
|||
### Fixed
|
||||
|
||||
* The `pre-push` Git hook should use `./run test:commit` instead of `just test-commit` since `just` is no longer used.
|
||||
* Recursively merge `build.defaults.yaml` into the given configuration.
|
||||
|
||||
## 2023-11-22
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ use Symfony\Component\Yaml\Yaml;
|
|||
final class CreateFinalConfigurationData
|
||||
{
|
||||
public function handle(string $configFile, \Closure $next) {
|
||||
$configurationData = array_merge(
|
||||
$configurationData = array_replace_recursive(
|
||||
Yaml::parseFile(filename: __DIR__ . '/../../resources/build.defaults.yaml'),
|
||||
Yaml::parseFile(filename: $configFile),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue