Skip to content

Release v1.0.9

Choose a tag to compare

@github-actions github-actions released this 27 Mar 04:32
· 308 commits to main since this release

Release v1.0.9: Twig 4.0+ compatibility fix

  • Added YieldReady attribute to NodeStart class
  • Resolves deprecation warning in Twig 4.0+
  • Backward compatible with all supported Twig versions (3.8+)
  • Updated documentation (CHANGELOG and UPGRADING)

Changelog

Fixed

  • Twig 4.0+ Compatibility: Fixed deprecation warning for NodeStart class
    • Added #[\Twig\Attribute\YieldReady] attribute to NodeStart class to resolve Twig 4.0+ deprecation warnings
    • This attribute is required for custom Twig nodes in Twig 4.0+ to indicate they are ready for generator/yield support
    • Backward Compatible: No breaking changes, works with all supported Twig versions (3.8+)
    • The NodeEnd class already had this attribute, now both node classes are consistent
    • Fixes: "User Deprecated: NodeStart requires #[\Twig\Attribute\YieldReady] attribute"
    • See UPGRADING.md for upgrade instructions