Christophe Coevoet
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
which version of composer and PHP are you using when getting this error ?
Btw, the location of the error `/usr/share/php/Symfony/Component/Console/Application.php` does not appear to be part of a composer phar.
how did you install composer ?
oh, and how is this related to the Monolog project ?
A NotNormalizableValueException might not be only for a case of an invalid type.
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...