Since I don't know if there is another reason for that "$this->merge" I didn't create a pull request. It would be nice if that can be fixed as soon as possible.
P.S.: a global "return array_replace_recursive($a, $b);" as the only line for the "merge" function works for me without any problems. But that replaces previously existing keys and doesn't append them as the merge-function does it now.
Hello!
I've the following line in my code:
When I loop through the array in my template
every value is printed twice!
The reason might be this in DefaultsParamsTrait:
After all global and template defaults and the normal template variables are parsed "availableLocales" has the content:
When I replace that "$this->merge(...)" with "array_replace_recursive($a[$key], $value)" I get the result I originally expected:
Since I don't know if there is another reason for that "$this->merge" I didn't create a pull request. It would be nice if that can be fixed as soon as possible.
P.S.: a global "return array_replace_recursive($a, $b);" as the only line for the "merge" function works for me without any problems. But that replaces previously existing keys and doesn't append them as the merge-function does it now.