Twig icon indicating copy to clipboard operation
Twig copied to clipboard

set object.property = value

Open geek-merlin opened this issue 2 months ago • 1 comments

With php's property accessors, property setters will go the way of the dinos. Property write access will be the idiomatic way.

So Twig should support set object.property = value.

geek-merlin avatar Oct 13 '25 13:10 geek-merlin

What is your use-case of setting a nested object value? You can already assign an object to a variable and merge objects (example)

GromNaN avatar Oct 13 '25 17:10 GromNaN