mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-04 10:57:04 +00:00
dea0483027
This PR was squashed before being merged into the 3.x branch. Discussion ---------- Reject template wrappers from another environment Twig now rejects `TemplateWrapper` instances created by another `Environment`. This prevents templates from unexpectedly using another environment's loader, extensions, globals, or sandbox policy. Commits -------83e8f7e123Reject cross-environment template wrappers in block chainsc1fc112047Reject cross-environment template wrappers