zendframework / zend-expressive-zendviewrenderer

zend-view PhpRenderer integration for Expressive
BSD 3-Clause "New" or "Revised" License
11 stars 12 forks source link

mergeViewModel pass array instead of object to mergeParams function #43

Closed koza4ok closed 6 years ago

koza4ok commented 7 years ago

Currently when you create new view mode - the parameters are passed as object, so Zend\Expressive\Template\DefaultParamsTrait private function mergeParams($template, array $params) return array_replace_recursive($globalDefaults, $templateDefaults, $params);

returns NULL, which breaks the script.

mwillbanks commented 7 years ago

@koza4ok please add a unit test validating the error and fix.

koza4ok commented 7 years ago

@mwillbanks tests added