Explain that the inert attribute classes are kept for static analysis, not class loading

This commit is contained in:
Fabien Potencier
2026-09-26 08:07:31 +02:00
parent 991294ae39
commit 2a16651387
+2 -2
View File
@@ -3,8 +3,8 @@
* 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 itself is kept so 3.x extensions still load
* Remove the now inert `#[FirstClassTwigCallableReady]` attribute from the built-in nodes; the attribute itself is kept so 3.x extensions still load
* 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
* 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