Skip to content

Commit

Permalink
Merge pull request #62 from bwaidelich/bugfix-quickstart-tutorial
Browse files Browse the repository at this point in the history
BUGFIX: Prevent fatal error when using the RenderViewHelper
  • Loading branch information
Bastian Waidelich committed Aug 29, 2017
2 parents 489d4ff + 0cac9ef commit 130a29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ViewHelpers/RenderViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class RenderViewHelper extends AbstractViewHelper
* @param array $overrideConfiguration factory specific configuration
* @return string the rendered form
*/
public function render($persistenceIdentifier = null, $factoryClass = \Neos\Form\Factory\ArrayFormFactory::class, $presetName = 'default', array $overrideConfiguration = null)
public function render($persistenceIdentifier = null, $factoryClass = \Neos\Form\Factory\ArrayFormFactory::class, $presetName = 'default', array $overrideConfiguration = [])
{
if (isset($persistenceIdentifier)) {
$overrideConfiguration = Arrays::arrayMergeRecursiveOverrule($this->formPersistenceManager->load($persistenceIdentifier), $overrideConfiguration ?: []);
$overrideConfiguration = Arrays::arrayMergeRecursiveOverrule($this->formPersistenceManager->load($persistenceIdentifier), $overrideConfiguration);
}

$factory = $this->objectManager->get($factoryClass);
Expand Down

0 comments on commit 130a29d

Please sign in to comment.