src/includes/classes/App.php
public function mergeConfig(array $base, array $merge): array
    {
        if (isset($base['©di']['©default_rule']['new_instances'])) {
            $base_di_default_rule_new_instances = $base['©di']['©default_rule']['new_instances'];
        } // Save new instances before emptying numeric arrays.

        if (isset($merge['©mysql_db']['©hosts'])) {
            unset($base['©mysql_db']['©hosts']);
        } // Override base array. Replace w/ new hosts.

        $base = $this->maybeEmptyNumericConfigArrays($base, $merge);

        if (isset($base_di_default_rule_new_instances, $merge['©di']['©default_rule']['new_instances'])) {
            $merge['©di']['©default_rule']['new_instances'] = array_merge($base_di_default_rule_new_instances, $merge['©di']['©default_rule']['new_instances']);
        }
        return $merged = array_replace_recursive($base, $merge);
    }
public function mergeConfig(array $base, array $merge): array
    {
        if (isset($base['©di']['©default_rule']['new_instances'])) {
            $base_di_default_rule_new_instances = $base['©di']['©default_rule']['new_instances'];
        } // Save new instances before emptying numeric arrays.

        if (isset($merge['©mysql_db']['©hosts'])) {
            unset($base['©mysql_db']['©hosts']);
        } // Override base array. Replace w/ new hosts.

        $base = $this->maybeEmptyNumericConfigArrays($base, $merge);

        if (isset($base_di_default_rule_new_instances, $merge['©di']['©default_rule']['new_instances'])) {
            $merge['©di']['©default_rule']['new_instances'] = array_merge($base_di_default_rule_new_instances, $merge['©di']['©default_rule']['new_instances']);
        }
        return $merged = array_replace_recursive($base, $merge);
    }
Merge config arrays.

@since 160227 Config utils.

@param array $base  Base array.
@param array $merge Array to merge.

@return array The resuling array after merging.

@internal This method must be capable of running w/o a constructed app.