Skip to content

Commit

Permalink
Merge pull request #29 from elkamyko/feature/support-array-properties
Browse files Browse the repository at this point in the history
TASK: Drop eel evaluation on properties with value of type array
  • Loading branch information
daniellienert authored Jan 27, 2021
2 parents f1667d2 + fd7f033 commit 7023de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ public function isApplicable(array $context)
protected function setProperties(NodeInterface $node, array $context)
{
foreach ($this->properties as $propertyName => $propertyValue) {
if (preg_match(\Neos\Eel\Package::EelExpressionRecognizer, $propertyValue)) {
//evaluate Eel only on string properties
if (is_string($propertyValue) && preg_match(\Neos\Eel\Package::EelExpressionRecognizer, $propertyValue)) {
$this->persistenceManager->persistAll();
$propertyValue = $this->eelEvaluationService->evaluateEelExpression($propertyValue, $context);
}
Expand Down

0 comments on commit 7023de1

Please sign in to comment.