Bug #5783 ยป issue5605.diff
Classes/Core/ViewHelper/AbstractViewHelper.php | ||
---|---|---|
297 | 297 |
if (!is_bool($this->arguments[$argumentName])) { |
298 | 298 |
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); |
299 | 299 |
} |
300 |
} elseif (class_exists($type)) { |
|
300 |
} elseif (strstr($type, '_') !== FALSE && class_exists($type)) {
|
|
301 | 301 |
if (! ($this->arguments[$argumentName] instanceof $type)) { |
302 | 302 |
if (is_object($this->arguments[$argumentName])) { |
303 | 303 |
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); |