This PR was squashed before being merged into the 3.x branch.
Discussion
----------
synchronize sourceContext
I have some debugging extensions that need the template name from various nodes in a `NodeVisitor`. Currently this is guaranteed for the nodes created from parsing the template. This ensures that the `SourceContext` is also set for nodes created by `NodeVisitors` modifying the node tree.
I am not sure if it is a good idea to always set the `SourceContext` on a child node or if this should only set it if it is not set.
Commits
-------
350670a3 synchronize sourceContext
This PR was merged into the 3.x branch.
Discussion
----------
fix: #4033 add missing unwrap call on TemplateWrapper instance
Commits
-------
6c631526fix: #4033 add missing unwrap call when a TemplateWrapper instance can be present
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Ensure Lexer:: is always initialized
I'm using Symfony Bridge `LintCommand` with `--show-deprecations` flag.
While Twig is initializing, if an deprecation error is thrown by `Lexer::getOperatorRegex()` method, the `Lexer::$regexes` will remain `null` but `$isInitialized` will be set to TRUE.
This PR ensures that `$regexes` will be initialized.
Commits
-------
5a79652e Ensure Lexer:: is always initialized
This PR was merged into the 3.x branch.
Discussion
----------
change extended DI extension class
Commits
-------
b61a4224 change extended DI extension class
This PR was merged into the 3.x branch.
Discussion
----------
fix: #4029 CaptureNode iterator_to_array preserveKeys false
Commits
-------
f7121a23fix: #4029 when use_yield is true CaptureNode use iterator_to_array preserveKeys argument to false
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Add twig_escape_filter_is_safe() as deprecated.
Fix for #4031
Commits
-------
1170144f Add twig_escape_filter_is_safe() as deprecated.
This PR was merged into the 3.x branch.
Discussion
----------
Require correct twig core version
This changes the composer version constraint of the internationalisation extension on the core twig library, to require atleast version 3.9.0. This is necessary since twig/intl-extra now depends on CoreExtension::dateConverter() which was only introduced with the release of version 3.9 (see: twigphp/Twig@54d34b9).
Commits
-------
5d903b63 Require correct twig core version
This PR was merged into the 3.x branch.
Discussion
----------
Fix CaptureNode for some use cases
Closes#4022
Commits
-------
64cebe0e Fix CaptureNode for some use cases
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Add PHP 8.4 support
Commits
-------
fdfc5ddd Fix compat with PHP 8.4
11511e18 Add PHP 8.4 to CI
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Deprecate passing a Template instance in Environment::resolveTemplate() and Template::loadTemplate()
Commits
-------
dbe9456f Fix incompatibility with old PHP versions
a62581ae Fix typo
61031d6c Deprecate passing a Template instance in Environment::resolveTemplate() and Template::loadTemplate()
This PR was merged into the 3.x branch.
Discussion
----------
Add a deprecation notice when using AbstractNodeVisitor (deprecated since 2.9)
Commits
-------
41d702d6 Add a deprecation notice when using AbstractNodeVisitor (deprecated since 2.9)