Files
Twig/src
Fabien Potencier 1b9df761b6 feature #4310 Allow to use a dynamic attribute on the . operator via () (fabpot)
This PR was squashed before being merged into the 3.x branch.

Discussion
----------

Allow to use a dynamic attribute on the . operator via ()

Closes #3598

As one can think that the `attribute` function has some special power compared to the `.` operator (like using Symfony PropertyAccess), I think it's better to use the `.` operator for dynamic attributes as well.

Using `()` makes it clear that the behavior is the same as the `.` operator (using `()` is similar to the way one can use dynamic mapping names (like in `{ (name): value }`).

Commits
-------

048183eaa6 Add cross-link
8d1af0fc03 Let's no deprecate the attribute function yet
333638e8e6 Allow to use a dynamic attribute on the . operator via ()
2024-09-14 10:41:58 +02:00
..
2024-08-29 19:29:39 +02:00
2024-08-26 17:41:21 +02:00
2024-08-29 19:29:39 +02:00
2024-08-29 19:29:39 +02:00
2024-08-29 19:29:39 +02:00
2024-08-28 14:18:47 +02:00
2024-09-11 07:44:00 +02:00
2024-09-10 22:41:00 +02:00
2024-09-14 10:31:13 +02:00
2024-08-29 19:29:39 +02:00
2024-09-11 07:44:00 +02:00
2024-08-29 19:29:39 +02:00
2024-08-29 19:29:39 +02:00
2024-08-29 19:29:39 +02:00