3.31.0
·
1 commit
to master
since this release
Included commits: 3.30.0...3.31.0
Improvements
- Introduced
EnvironmentCoreExtension::dispatchToCoreExtension()to forward static calls toCoreExtensionfilter/find/map/reduce methods using the correct argument shape for the installed Twig version, ensuring compatibility across both Twig^2.16.1and^3.14.0ranges. - Added reflection-based
EnvironmentCoreExtension::coreExtensionNeedsIsSandboxed()andEnvironmentCoreExtension::resolveIsSandboxed()to automatically detect and supply the$isSandboxedparameter introduced in Twig 4.x, removing the need for version-specific conditional logic.