Skip to content

Commit

Permalink
[BUGFIX] Use empty array if wrap for given property doesn't exists (#…
Browse files Browse the repository at this point in the history
…1236)

Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 31, 2024
1 parent 3db814c commit 39cee7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/ViewHelpers/MetadataWrapVariableViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public static function renderStatic(
$parser = GeneralUtility::makeInstance(TypoScriptParser::class);
$parser->parse($renderChildrenClosure());
$wrap = [
'key' => $parser->setup['key.'],
'value' => $parser->setup['value.'],
'all' => $parser->setup['all.'],
'key' => $parser->setup['key.'] ?? [],
'value' => $parser->setup['value.'] ?? [],
'all' => $parser->setup['all.'] ?? [],
];
$renderingContext->getVariableProvider()->add($arguments['name'], $wrap);
}
Expand Down

0 comments on commit 39cee7f

Please sign in to comment.