/** * Merges the given second array over the first one similar to the PHP internal * array_merge_recursive method, but does not change scalar values into arrays * when duplicate keys occur. * * @param array $first first or default array * @param array $second array to merge over the first array * * @return array merged result with scalar values still being scalar */ public static function mergeSettings(array &$first, array &$second) { return ArrayToolkit::mergeScalarSafe($first, $second); }
/** * @return array of render settings merged over renderer config */ protected function getOptions() { $config = $this->config->toArray(); $settings = $this->settings->toArray(); return ArrayToolkit::mergeScalarSafe($config, $settings); }