Skip to content

Commit

Permalink
Fix tests for php 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Oct 17, 2024
1 parent d36e392 commit a4038bc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public function resolve(mixed $data, string $locale, array $params = []): Conten
foreach ($data as $block) {
$type = $block['type'];
$formMetadata = $blockTypes[$type];
$contentViews[] = [
'type' => $type,
...$this->metadataResolver->resolveItems($formMetadata->getItems(), $block, $locale),
];
$contentViews[] = \array_merge(
['type' => $type],
$this->metadataResolver->resolveItems($formMetadata->getItems(), $block, $locale)
);
}

return ContentView::create($contentViews, []);
Expand Down

0 comments on commit a4038bc

Please sign in to comment.