chore(deps): update dependency twig/twig to v3.26.0#64
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
7d6b49a to
dc5d82f
Compare
dc5d82f to
c735178
Compare
c735178 to
1f42e95
Compare
1f42e95 to
9d01894
Compare
9d01894 to
8055303
Compare
8055303 to
16cf8fa
Compare
16cf8fa to
0a0230e
Compare
0a0230e to
4e17b79
Compare
4e17b79 to
cefa5ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.8.0→3.26.0Release Notes
twigphp/Twig (twig/twig)
v3.26.0Compare Source
template_from_stringcaveats when used in a sandboxed environmentMarkupabout the goal of this class in the context of a sandboxspacelessfilterinline_cssandinky_to_htmlfiltersis_safeannotation on HTML-emitting filtersHtmlDumperIntlDateFormatter/NumberFormatter{% sandbox %}tag when including a preloaded template{% use %}template name_self/ import macro referenceSourcetocheckArrowfor source-policy sandboxing\x27inCompiler::string()as a defense-in-depth measure__toStringbypassesTwig\Node\CoercesChildrenToStringInterfaceto let nodes declare which of their child nodes will be string-coerced at runtime so the sandbox wraps them with a__toStringcheckv3.25.0Compare Source
needs_is_sandboxedoption for filters, functions, and testsEscaperRuntimeinEscaperExtensionv3.24.0Compare Source
getOperatorTokens()method inExpressionParserInterfaceimplementationsAbstractExpressionnode toTwig\Node\Expression\Binary\MatchesBinaryconstructorAbstractExpressionnode toParser::setParent(){name: userName} = user)html_attr_relaxedescaping strategy that preserves :, @, [, and ] for front-end framework attribute nameshtml_attrfunction andhtml_attr_mergeas well ashtml_attr_typefiltersv3.23.0Compare Source
=assignment operator (allows to set variables in expression or to replace the short-form of the set tag)?.null-safe operator===and!==operators (equivalent to thesame asandnot same astests)v3.22.2Compare Source
v3.22.1Compare Source
v3.22.0Compare Source
Environment::registerUndefinedTestCallback()v3.21.1Compare Source
v3.21.0Compare Source
Template::loadTemplate()MarkupReturnPrimitiveTypeInterface(and sub-interfaces for number, boolean, string, and array)SupportDefinedTestInterfacefor expression nodes supporting thedefinedtest|operator in an expression with+or-without using parentheses to clarify precedenceinstead of arrays (it comes with many deprecations that are documented in
the
deprecateddocumentation chapter)Twig\ExpressionParser, andTwig\OperatorPrecedenceChangeclassesAsTwigFilter,AsTwigFunction, andAsTwigTestto ease extension developmentv3.20.0Compare Source
ForElseNodev3.19.0Compare Source
??Token::getType(), useToken::test()insteadToken::toEnglish()ForElseNodeTwig\ExpressionParser::parseOnlyArguments()andTwig\ExpressionParser::parseArguments()(useTwig\ExpressionParser::parseNamedArguments()instead)constant()behavior when used with??invokefilter{}optional for thetypestagLastModifiedExtensionInterfaceand implementation inAbstractExtensionto track modification of runtime classesv3.18.0Compare Source
SyntaxErrorexceptions from undefined handlers when using theguardtagTemplateWrapper::stream()andTemplateWrapper::streamBlock())v3.17.1Compare Source
v3.17.0Compare Source
ConditionalExpressionandNullCoalesceExpression(useConditionalTernaryandNullCoalesceBinaryinstead)v3.16.0Compare Source
InlinePrintSourceinstance toTokenStreamnullfromTwigFilter::getSafe()andTwigFunction::getSafe(), return[]insteadv3.15.0Compare Source
this can be a BC break if you don't use UPPERCASE constant names
pluralandsingularfilters in the String extensionTempNameExpressionin favor ofLocalVariableNameExpressionin favor ofContextVariableAssignNameExpressionin favor ofAssignContextVariableMacroAutoImportNodeVisitorMethodCallExpressionin favor ofMacroReferenceExpression_self.xxx(auto-imported) macrosfoo.bar(some: arg))guardtag that allows to test if some Twig callables are available at compilation time\Closure)notunary operator in an expression with*,/,//, or%without using explicit parentheses to clarify precedence??binary operator without explicit parentheses~binary operator in an expression with+or-without using parentheses to clarify precedenceAbstractExpressionargs to most constructor arguments for classes extendingAbstractExpressionpowerexpressions with a negative number in parenthesis ((-1) ** 2)Nodedirectly. UseEmptyNodeorNodesinstead.Profile::getStartTime()andProfile::getEndTime()They were automatically converted to snake-cased before
attributefunction; use the.notation and wrap the name with parenthesis insteadsandboxtagdeprecation_infoinstead of the other callable options)enumfunctionxoroperatorv3.14.2Compare Source
v3.14.1Compare Source
They are now checked via the property policy
toString()under some circumstances on an object even if the
__toString()method is not allowed by the security policyv3.14.0Compare Source
Environment::resetGlobals()Environment::mergeGlobals()v3.13.0Compare Source
typestag (experimental)Twig\Test\NodeTestCase::getTests()data provider, overrideprovideTests()instead.Twig\Test\NodeTestCase::getEnvironment()as final, overridecreateEnvironment()instead.Twig\Test\NodeTestCase::getVariableGetter(), callcreateVariableGetter()instead.Twig\Test\NodeTestCase::getAttributeGetter(), callcreateAttributeGetter()instead.Twig\Test\IntegrationTestCase::getFixturesDirectory(), this method will be abstract in 4.0Twig\Test\IntegrationTestCase::getTests()andgetLegacyTests()as finalv3.12.0Compare Source
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.
spacelessfilterParser:getBlockStack(),hasBlock(),getBlock(),hasMacro(),hasTraits(),getParent()nulltoTwig\Parser::setParent()Node::__toString()to include the node tag if setTwig\Node\Nodethat take a Node nameBodyNodeinstance as the body of aModuleNodeorMacroNodeconstructorOptimizerNodeVisitor::OPTIMIZE_TEXT_NODESuse_yieldisfalse(which is the default)use_yieldisfalse(as extensions still usingechowill work as is):) in addition to equals (=) to separate argument names and values in named argumentshtml_cvafunction (in the HTML extra package)blockandattributefunctionsCallableArgumentsExtractorclassFunctionExpression,FilterExpression, andTestExpression;pass a
TwigFunction,TwigFilter, orTestFilterinsteadFunctionExpression,FilterExpression, andTestExpressionfilternode ofFilterExpressionenum_casesfunctionv3.11.3Compare Source
v3.11.2Compare Source
They are now checked via the property policy
toString()under some circumstances on an object even if the
__toString()method is not allowed by the security policyv3.11.1Compare Source
v3.11.0Compare Source
OptimizerNodeVisitor::OPTIMIZE_RAW_FILTERTwig\Cache\ChainCacheandTwig\Cache\ReadOnlyFilesystemCacheNodedeprecatedtagConstantExpressionas being@finalfindfilterOptimizerNodeVisitorPrintNodeshufflefiltersingularandpluralfilters inStringExtensionTwig\Node\Expression\CallExpression::compileArguments()Twig\ExpressionParser\parseHashExpression()in favor ofTwig\ExpressionParser::parseMappingExpression()Twig\ExpressionParser\parseArrayExpression()in favor ofTwig\ExpressionParser::parseSequenceExpression()sequenceandmappingtestsTwig\Node\Expression\NameExpression::isSimple()andTwig\Node\Expression\NameExpression::isSpecial()v3.10.3Compare Source
v3.10.2Compare Source
v3.10.1Compare Source
v3.10.0Compare Source
Make
CoreExtension::formatDate,CoreExtension::convertDate, andCoreExtension::formatNumberpart of the public APIAdd
needs_charsetoption for filters and functionsExtract the escaping logic from the
EscaperExtensionclass to a newEscaperRuntimeclass.The following methods from
Twig\\Extension\\EscaperExtensionaredeprecated:
setEscaper(),getEscapers(),setSafeClasses,addSafeClasses(). Use the same methods on theTwig\\Runtime\\EscaperRuntimeclass instead.Fix capturing output from extensions that still use echo
Fix a PHP warning in the Lexer on malformed templates
Fix blocks not available under some circumstances
Synchronize source context in templates when setting a Node on a Node
v3.9.3Compare Source
twig_escape_filter_is_safedeprecated functionv3.9.2Compare Source
v3.9.1Compare Source
$blocksvariable inCaptureNodev3.9.0Compare Source
Node implementations that use "echo" or "print" should use "yield" instead;
all Node implementations should be flagged with
#[YieldReady]once they've been made ready for "yield";the "use_yield" Environment option can be turned on when all nodes have been made
#[YieldReady];"yield" will be the only strategy supported in the next major version
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.