From 9784fe6cd7f337553caeed860122b3222294f1d8 Mon Sep 17 00:00:00 2001 From: Stefan Galinski <stefan@sgalinski.de> Date: Thu, 1 Sep 2016 22:48:45 +0200 Subject: [PATCH] [BUGFIX] Fix PHP7 compatibility issue --- Classes/ViewHelpers/ExtendedIfViewHelper.php | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/Classes/ViewHelpers/ExtendedIfViewHelper.php b/Classes/ViewHelpers/ExtendedIfViewHelper.php index c02f49a..6fad1ac 100644 --- a/Classes/ViewHelpers/ExtendedIfViewHelper.php +++ b/Classes/ViewHelpers/ExtendedIfViewHelper.php @@ -38,27 +38,14 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper { * Note: The phpdoc data type of the parameter must be named "boolean". * Otherwise Fluid doesn't evaluates conditions itself. * - * @param boolean $condition - * @param boolean $or - * @param boolean $or2 - * @param boolean $or3 - * @param boolean $or4 - * @param boolean $and - * @param boolean $and2 - * @param boolean $and3 - * @param boolean $and4 - * @param boolean $negate * @return string */ - public function render( - $condition, $or = FALSE, $or2 = FALSE, $or3 = FALSE, $or4 = FALSE, - $and = TRUE, $and2 = TRUE, $and3 = TRUE, $and4 = TRUE, $negate = FALSE - ) { + public function render() { return parent::render(); } /** - * This method decides if the condition is TRUE or FALSE. It can be overriden in extending viewhelpers to adjust functionality. + * This method decides if the condition is TRUE or FALSE. It can be overridden in extending viewhelpers to adjust functionality. * * @param array $arguments ViewHelper arguments to evaluate the condition for this ViewHelper, allows for flexiblity in overriding this method. * @return bool @@ -78,5 +65,3 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper { return isset($arguments['negate']) && $arguments['negate'] ? !$conditionResult : $conditionResult; } } - -?> -- GitLab