fix(deps): update dependency twig/twig to v3 (v4)#193
Closed
renovate[bot] wants to merge 1 commit intov4from
Closed
fix(deps): update dependency twig/twig to v3 (v4)#193renovate[bot] wants to merge 1 commit intov4from
renovate[bot] wants to merge 1 commit intov4from
Conversation
Contributor
Author
|
Contributor
Author
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
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:
^1.0||^2.0->3.20.0Release Notes
twigphp/Twig (twig/twig)
v3.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
v3.8.0Compare Source
twig_test_iterablefunction. Use the nativeis_iterableinstead.v3.7.1Compare Source
v3.7.0Compare Source
v3.6.1Compare Source
v3.6.0Compare Source
v3.5.1Compare Source
v3.5.0Compare Source
constantifnodes when outside of a block and with an empty bodyv3.4.3Compare Source
v3.4.2Compare Source
v3.4.1Compare Source
v3.4.0Compare Source
v3.3.10Compare Source
v3.3.9Compare Source
v3.3.8Compare Source
sortfilter must require a Closure for thearrowparameterroundconvertToHtmlmethodv3.3.7Compare Source
v3.3.6Compare Source
v3.3.5Compare Source
v3.3.4Compare Source
v3.3.3Compare Source
v3.3.2Compare Source
v3.3.1Compare Source
v3.3.0Compare Source
v3.2.1Compare Source
v3.1.1Compare Source
v3.1.0Compare Source
v3.0.5Compare Source
v3.0.4Compare Source
v3.0.3Compare Source
v3.0.2Compare Source
v3.0.1Compare Source
v3.0.0Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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.