Skip to content

Commit

Permalink
EvaluatedValueResolver: to work with arrays
Browse files Browse the repository at this point in the history
'<(new SomeObject([@entity1,@Entity2]))>'
For now processing of such syntax is broken. Let's give it a chanse.
  • Loading branch information
wolandtel authored Feb 11, 2025
1 parent 0ab1ae1 commit 79b531b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ public function resolve(
*/
private function replacePlaceholders(string $expression): string
{
return preg_replace('/(@(?<id>[^ @\-]+))/', '\$_instances[\'$2\']', $expression);
return preg_replace('/(@(?<id>[^ @\-,\]]+))/', '\$_instances[\'$2\']', $expression);
}
}

0 comments on commit 79b531b

Please sign in to comment.