You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TextNode instances created by OptimizerNodeVisitor have no SourceContext set and often the wrong template line which i need for a debugging extension. OPTIMIZE_RAW_FILTER can be turned off, but the print node optimization is always active. Also the check in the constructor currently doesn't include OPTIMIZE_RAW_FILTER and would throw an InvalidArgumentException if only that optimization should be enabled - this can be bypassed by adding something to the bitmask to force negative values though.
The text was updated successfully, but these errors were encountered:
Lumaraf
added a commit
to Lumaraf/Twig
that referenced
this issue
Apr 19, 2024
TextNode
instances created byOptimizerNodeVisitor
have noSourceContext
set and often the wrong template line which i need for a debugging extension.OPTIMIZE_RAW_FILTER
can be turned off, but the print node optimization is always active. Also the check in the constructor currently doesn't includeOPTIMIZE_RAW_FILTER
and would throw anInvalidArgumentException
if only that optimization should be enabled - this can be bypassed by adding something to the bitmask to force negative values though.The text was updated successfully, but these errors were encountered: