Skip to content

Commit 7023de1

Browse files
Merge pull request #29 from elkamyko/feature/support-array-properties
TASK: Drop eel evaluation on properties with value of type array
2 parents f1667d2 + fd7f033 commit 7023de1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/Template.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ public function isApplicable(array $context)
201201
protected function setProperties(NodeInterface $node, array $context)
202202
{
203203
foreach ($this->properties as $propertyName => $propertyValue) {
204-
if (preg_match(\Neos\Eel\Package::EelExpressionRecognizer, $propertyValue)) {
204+
//evaluate Eel only on string properties
205+
if (is_string($propertyValue) && preg_match(\Neos\Eel\Package::EelExpressionRecognizer, $propertyValue)) {
205206
$this->persistenceManager->persistAll();
206207
$propertyValue = $this->eelEvaluationService->evaluateEelExpression($propertyValue, $context);
207208
}

0 commit comments

Comments
 (0)