rverse2
rverse2 copied to clipboard
Bump twig/twig from 3.6.1 to 3.14.0
Bumps twig/twig from 3.6.1 to 3.14.0.
Changelog
Sourced from twig/twig's changelog.
3.14.0 (2024-09-09)
- Fix a security issue when an included sandboxed template has been loaded before without the sandbox context
- Add the possibility to reset globals via
Environment::resetGlobals()- Deprecate
Environment::mergeGlobals()3.13.0 (2024-09-07)
- Add the
typestag (experimental)- Deprecate the
Twig\Test\NodeTestCase::getTests()data provider, overrideprovideTests()instead.- Mark
Twig\Test\NodeTestCase::getEnvironment()as final, overridecreateEnvironment()instead.- Deprecate
Twig\Test\NodeTestCase::getVariableGetter(), callcreateVariableGetter()instead.- Deprecate
Twig\Test\NodeTestCase::getAttributeGetter(), callcreateAttributeGetter()instead.- Deprecate not overriding
Twig\Test\IntegrationTestCase::getFixturesDirectory(), this method will be abstract in 4.0- Marked
Twig\Test\IntegrationTestCase::getTests()andgetLegacyTests()as final3.12.0 (2024-08-29)
- Deprecate the fact that the
extendsandusetags are always allowed in a sandboxed template. This behavior will change in 4.0 where these tags will need to be explicitly allowed like any other tag.- Deprecate the "tag" constructor argument of the "Twig\Node\Node" class as the tag is now automatically set by the Parser when needed
- Fix precedence of two-word tests when the first word is a valid test
- Deprecate the
spacelessfilter- Deprecate some internal methods from
Parser:getBlockStack(),hasBlock(),getBlock(),hasMacro(),hasTraits(),getParent()- Deprecate passing
nulltoTwig\Parser::setParent()- Update
Node::__toString()to include the node tag if set- Add support for integers in methods of
Twig\Node\Nodethat take a Node name- Deprecate not passing a
BodyNodeinstance as the body of aModuleNodeorMacroNodeconstructor- Deprecate returning "null" from "TokenParserInterface::parse()".
- Deprecate
OptimizerNodeVisitor::OPTIMIZE_TEXT_NODES- Fix performance regression when
use_yieldisfalse(which is the default)- Improve compatibility when
use_yieldisfalse(as extensions still usingechowill work as is)- Accept colons (
:) in addition to equals (=) to separate argument names and values in named arguments- Add the
html_cvafunction (in the HTML extra package)- Add support for named arguments to the
blockandattributefunctions- Throw a SyntaxError exception at compile time when a Twig callable has not the minimum number of required arguments
- Add a
CallableArgumentsExtractorclass- Deprecate passing a name to
FunctionExpression,FilterExpression, andTestExpression; pass aTwigFunction,TwigFilter, orTestFilterinstead- Deprecate all Twig callable attributes on
FunctionExpression,FilterExpression, andTestExpression- Deprecate the
filternode ofFilterExpression- Add the notion of Twig callables (functions, filters, and tests)
- Bump minimum PHP version to 8.0
- Fix integration tests when a test has more than one data/expect section and deprecations
- Add the
enum_casesfunction3.11.0 (2024-08-08)
- Deprecate
OptimizerNodeVisitor::OPTIMIZE_RAW_FILTER- Add
Twig\Cache\ChainCacheandTwig\Cache\ReadOnlyFilesystemCache
... (truncated)
Commits
126b2c9Prepare the 3.14.0 release11f68e2Fix a security issue when an included sandboxed template has been loaded befo...540b54eminor #4290 fix the version mergeGlobals() is deprecated since (xabbuh)7957202Fix testf72c93dfix the version mergeGlobals() is deprecated since064e079Tweak code995e7c2Fix CS6420791minor #4289 Remove unused private methods (fabpot)45e167aAdd more tests28dc912Remove unused private methods- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.