Christophe Coevoet

Results 2813 comments of Christophe Coevoet

@ericmorand `getOperators` in `ExtensionInterface` was indeed about adding operators to the environment when that extension is registered. This part of the documentation in in the [`Creating an Extension`](https://twig.symfony.com/doc/3.x/advanced.html#creating-an-extension) section

Btw, the location of the error `/usr/share/php/Symfony/Component/Console/Application.php` does not appear to be part of a composer phar.

Optimizing this would require checking the *following* parts of the compiled template to ensure that the Twig context is not used anymore. This would add a huge amount of complexity...

@azjezz your logic should use `array_key_exists` instead of `isset` to avoid issues with `null` values in variables.

The conditional class using features not supported on PHP 8.0 must be extracted in a separate file that is loaded conditionally. Otherwise, you will still get a parse error on...

@VincentLanglet if the class with a `@phpstan-sealed` is not abstract, an instance of `SealedClass` could also be `SealedClass` itself. You get *more* features when sealing abstract classes than when sealing...