Skip to content

Conversation

@s2b
Copy link
Contributor

@s2b s2b commented Aug 17, 2025

A new <f:merge> ViewHelper is introduced to Fluid, which merges two arrays, optionally recursively.

Arguments:

array $array
array $with
bool $recursive
See also the php array_merge() and the php array_merge_recursive() functions.

Examples:

<f:variable name="merged" value="{f:merge(array: input, with: toMerge)}" />
<f:variable name="merged" value="{input -> f:merge(with: toMerge)}" />

Resolves: #1123

A new <f:merge> ViewHelper is introduced to Fluid, which merges two arrays, optionally recursively.

Arguments:

array $array
array $with
bool $recursive
See also [the php array_merge()](https://www.php.net/manual/en/function.array-merge.php) and [the php array_merge_recursive()](https://www.php.net/manual/en/function.array-merge-recursive.php) functions.

Examples:

```
<f:variable name="merged" value="{f:merge(array: input, with: toMerge)}" />
<f:variable name="merged" value="{input -> f:merge(with: toMerge)}" />
```

Resolves: #1123
@s2b s2b merged commit ac127ab into 4.5 Aug 17, 2025
10 checks passed
@s2b s2b deleted the backport branch August 17, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants