[BUGFIX] InvalidArgumentException in Image- and Media-ViewHelper 22/46422/3
authorDaniel Maier <dani-maier@gmx.de>
Sun, 31 Jan 2016 17:58:30 +0000 (18:58 +0100)
committerMarkus Klein <markus.klein@typo3.org>
Wed, 3 Feb 2016 14:08:29 +0000 (15:08 +0100)
commitd1ff05d9c68f4e24a5dcfce830fac9606859c176
treeb455ece1135a98ce26f9e4da1b5603f58dfcc3e7
parent7aac6b49e1810b4a21c6187271aacfa5ad7df301
[BUGFIX] InvalidArgumentException in Image- and Media-ViewHelper

The argument validation of Standalone Fluids AbstractViewHelper
fails for methods defining arguments with multiple types, like
@param FileInterface|AbstractFileFolder.

To solve this, the corresponding argument definition of Image-
and Media-ViewHelper render methods has been changed to object.
Type validation of these arguments in question is done inside
the corresponding methods.

Resolves: #73048
Releases: master
Change-Id: Ib3bf340e9191eefbd1186f24b00d8e14fa48b5e7
Reviewed-on: https://review.typo3.org/46422
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
Reviewed-by: Claus Due <claus@phpmind.net>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/MediaViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Uri/ImageViewHelper.php