Simon André

Results 779 comments of Simon André

@stof I updated the description > allow usage of intl (required if your app uses those validators/form types: BIC, country, currency, language, locale, timezone) without downloading all the emoji data...

Having new extension points somewhere between Parser and Lexer could facilitate Twig/LiveComponent maintenance and unlock some new features :)

Very personal wish, but I'd love to have "private" templates (as in "not possible to override" with the multi-paths system, or extends)

I almost forgot... those are also old wishes of mine, but i can't remember / understand why i marked them at "not doable" ### if set / ifset The equivalent...

You probably meant "first" instead of "filter" in your last example ? ```twig {{ attributes|first(a => a.name == 'b').value }} ``` But that is related to what i was going...

> Yes, but that's more verbose and a predicate for first is a pretty obvious read. [This](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/first.html) is how Kotlin defines a [first](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/first.html)-"filter". Similar to "[Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)" in JS too

I tried something in [this PR](https://github.com/twigphp/Twig/pull/3963), let's see what the Twig team think about it :)

(failures unrelated with this filter)

Added documentation (fabbot still complaining on a false-positive)

> Can you also update the CHANGELOG file? Good. Any other need in documentation or tests ?