Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 4fc77b7

Browse files
author
Andriy Kutsynyak
committed
mergeViewModel pass array instead of object to mergeParams function
1 parent bd5acd2 commit 4fc77b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ZendViewRenderer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ private function getNamespacedResolver(AggregateResolver $aggregate)
295295
*/
296296
private function mergeViewModel($name, ModelInterface $model)
297297
{
298-
$params = $this->mergeParams($name, $model->getVariables());
298+
$variables = $model->getVariables();
299+
$params = $this->mergeParams($name, $this->normalizeParams($variables));
299300
$model->setVariables($params);
300301
$model->setTemplate($name);
301302
return $model;

0 commit comments

Comments
 (0)