Skip to content
Snippets Groups Projects
Commit d767d595 authored by Sascha Egerer's avatar Sascha Egerer Committed by Wouter Wolters
Browse files

[BUGFIX] Fix typo in BooleanNode exception message

Change-Id: I792f5534780675278cbd7d540c96b60568b2647e
Resolves: #75287
Releases: 7.6, 6.2
Reviewed-on: https://review.typo3.org/47399


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
parent 297a8280
Branches
Tags
No related merge requests found
......@@ -98,7 +98,7 @@ class BooleanNode extends \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode {
public function __construct(\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode) {
$childNodes = $syntaxTreeNode->getChildNodes();
if (count($childNodes) > 3) {
throw new \TYPO3\CMS\Fluid\Core\Parser\Exception('A boolean expression has more than tree parts.', 1244201848);
throw new \TYPO3\CMS\Fluid\Core\Parser\Exception('A boolean expression has more than three parts.', 1244201848);
} elseif (count($childNodes) === 0) {
// In this case, we do not have child nodes; i.e. the current SyntaxTreeNode
// is a text node with a literal comparison like "1 == 1"
......@@ -339,4 +339,4 @@ class BooleanNode extends \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode {
return FALSE;
}
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment