Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Libero\ViewsBundle\Views\ConvertsChildren;
use Libero\ViewsBundle\Views\OptionalTemplateListener;
use Libero\ViewsBundle\Views\TemplateView;
use Libero\ViewsBundle\Views\View;
use Libero\ViewsBundle\Views\ViewConverter;
use function array_map;
use function iterator_to_array;
Expand Down Expand Up @@ -54,7 +55,7 @@ protected function handle(Element $object, TemplateView $view) : TemplateView
return $view->withArgument(
'content',
array_map(
function (NonDocumentTypeChildNode $child) use ($childContext) : TemplateView {
function (NonDocumentTypeChildNode $child) use ($childContext) : View {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return $this->converter->convert($child, null, $childContext);
},
iterator_to_array($children)
Expand Down