Merge the CHANGELOG entries about the inert attributes

This commit is contained in:
Fabien Potencier
2026-09-26 08:09:27 +02:00
parent 2a16651387
commit 4493d0747a
+1 -2
View File
@@ -3,8 +3,7 @@
* Remove support for cloning `Twig\Environment`; create a new environment instead
* Remove support for calling `TemplateWrapper::unwrap()` without an environment argument
* Stop detecting `echo` and `print` in compiled nodes; `yield` is the only supported mode and 3.x deprecates the alternative
* Remove the now inert `#[YieldReady]` attribute from the built-in nodes; the attribute class is kept so code supporting both 3.x and 4.x passes static analysis
* Remove the now inert `#[FirstClassTwigCallableReady]` attribute from the built-in nodes; the attribute class is kept so code supporting both 3.x and 4.x passes static analysis
* Remove the now inert `#[YieldReady]` and `#[FirstClassTwigCallableReady]` attributes from the built-in nodes; the attribute classes are kept so code supporting both 3.x and 4.x passes static analysis
* Add an optional `string $template = ''` argument to `IncludeNode::addGetTemplate()`; subclasses overriding this method must declare a compatible parameter
* Remove the obsolete `Twig\Test\NodeTestCase::getTests()` method; override `provideTests()` instead
* Make `Twig\Markup` final