diff --git a/Classes/Core/ViewHelper/AbstractViewHelper.php b/Classes/Core/ViewHelper/AbstractViewHelper.php index 9f62a31..b4ce6bb 100644 --- a/Classes/Core/ViewHelper/AbstractViewHelper.php +++ b/Classes/Core/ViewHelper/AbstractViewHelper.php @@ -297,7 +297,7 @@ abstract class Tx_Fluid_Core_ViewHelper_AbstractViewHelper implements Tx_Fluid_C if (!is_bool($this->arguments[$argumentName])) { throw new RuntimeException('The argument "' . $argumentName . '" was registered with type "boolean", but is of type "' . gettype($this->arguments[$argumentName]) . '" in view helper "' . get_class($this) . '".', 1240227732); } - } elseif (class_exists($type)) { + } elseif (strstr($type, '_') !== FALSE && class_exists($type)) { if (! ($this->arguments[$argumentName] instanceof $type)) { if (is_object($this->arguments[$argumentName])) { throw new RuntimeException('The argument "' . $argumentName . '" was registered with type "' . $type . '", but is of type "' . get_class($this->arguments[$argumentName]) . '" in view helper "' . get_class($this) . '".', 1256475114);