[BUGFIX] Initialize arguments correctly in routing related ViewHelpers 79/58579/4
authorDaniel Goerz <daniel.goerz@posteo.de>
Fri, 5 Oct 2018 07:34:51 +0000 (09:34 +0200)
committerMathias Brodala <mbrodala@pagemachine.de>
Mon, 8 Oct 2018 08:33:47 +0000 (10:33 +0200)
commitfc31bd3b0f36d2171551461a1fa85dc0607c4cdd
tree3bc569debf31ff4d9b01bd81dcb29ce0930f183e
parent1560740d40cdf17216bf5c651570d2c5d5c3f05b
[BUGFIX] Initialize arguments correctly in routing related ViewHelpers

Being initialized with the correct default value of an empty array
the Viewhelper no longer leads to a fatal error if called without
the argument "parameters".

Additionally the argument "route" is marked as required.

Resolves: #86576
Releases: master
Change-Id: I3457b4292d4409826250d4c5b1ec53d087b2bd95
Reviewed-on: https://review.typo3.org/58579
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Rudy Gnodde <rgn@windinternet.nl>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
typo3/sysext/fluid/Classes/ViewHelpers/Be/LinkViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/UriViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/LinkViewHelperTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Be/UriViewHelperTest.php