Twig icon indicating copy to clipboard operation
Twig copied to clipboard

Twig, the flexible, fast, and secure template language for PHP

Results 237 Twig issues
Sort by recently updated
recently updated
newest added

`twig/intl-extra` depends on intl PHP extension. However, it is possible to install even on systems without that extension (`composer install` succeeds). In that case, its usage would end up with...

Xdebug 3.5.0-alpha is shipping support for native path mapping. Twig templates are a perfect use case for this feature, which would allow developers to define breakpoints on the Twig files...

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.

As correctly pointed out by https://github.com/twigphp/Twig/issues/3399#issuecomment-2671030941 the issue was mistakenly closed. Therefore I'd like to kindly ask to reopen it. I added my comment with some more syntax examples I'd...

For a getter method like `getFirstName` it is common to call it in twig via `person.firstName`. But at the moment twig is adding these variants to the class method cache:...

Not sure if this is a bug or just unexpected behavior, but I just found that the expression passed to the `default` filter will always evaluate the expression that is...

I wonder why no one ever asked for this before. I think Twig is by now a very mature and grownup template language. Even if we try to keep our...