Skip to content
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.

Commit

Permalink
BUGFIX: Handle @children property correctly if multiple props exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed May 5, 2017
1 parent 9af27c5 commit 74dbb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Service/AfxService.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ protected static function astNodeToFusion($payload, $indentation = '')
$childrenProp = Arrays::getValueByPath($payload, 'props.@children');
if ($childrenProp) {
if ($childrenProp['type'] == 'string') {
$childrenPropertyName = $prop['payload'];
$childrenPropertyName = $childrenProp['payload'];
} else {
throw new Exception(
sprintf('@children only supports string payloads %s found', $childrenProp['type'])
Expand Down

0 comments on commit 74dbb63

Please sign in to comment.