diff --git a/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php b/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php index 8f461741540b03a2a4f9ae62c4a1d755ce85286b..0da2c38ef5850b65c41e61ac5870ac9f943fccd6 100644 --- a/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php +++ b/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php @@ -382,10 +382,11 @@ abstract class AbstractViewHelper { } foreach ($argumentDefinitions as $argumentName => $registeredArgument) { if ($this->hasArgument($argumentName)) { - $type = $registeredArgument->getType(); if ($this->arguments[$argumentName] === $registeredArgument->getDefaultValue()) { continue; } + + $type = $registeredArgument->getType(); if ($type === 'array') { if (!is_array($this->arguments[$argumentName]) && !$this->arguments[$argumentName] instanceof \ArrayAccess && !$this->arguments[$argumentName] instanceof \Traversable) { throw new \InvalidArgumentException('The argument "' . $argumentName . '" was registered with type "array", but is of type "' . gettype($this->arguments[$argumentName]) . '" in view helper "' . get_class($this) . '"', 1237900529);