This PR was merged into the 3.x branch.
Discussion
----------
[Docs] Replace `=` by `:` in code examples
Replace `=` by `:` in code examples
* function/include
* filters/format_number
Commits
-------
84b0499dbd [Docs] Replace `=` by `:` in code examples
This PR was merged into the 3.x branch.
Discussion
----------
[Doc] Fix `code-block` in html_cva
There is no `terminal` code-block in the current Twig documentation.
Using `bash` here instead is more in line with the other pages.
(...and will allow to simplify CSS needed for code blocks)
Commits
-------
a7c0482dc9 [Doc] Fix `code-block` in html_cva
This PR was merged into the 3.x branch.
Discussion
----------
fix: update extension references in docs to use backticks
Commits
-------
239a060d59 fix: update extension references in docs to use backticks
There is no `terminal` code-block in the current Twig documentation.
Using `bash` here instead is more in line with the other pages.
(...and will allow to simplify CSS needed for code blocks)
This PR was merged into the 3.x branch.
Discussion
----------
Use `:` instead of `=` for named argument in the docs
Commits
-------
ccec90c85c Use `:` instead of `=` for named argument in the docs
This PR was merged into the 3.x branch.
Discussion
----------
use EmptyNode instead of an Nodes instance without children
Commits
-------
e31a6e4534 use EmptyNode instead of an Nodes instance without children
This PR was merged into the 3.x branch.
Discussion
----------
Fix `ModuleNode` instanciation when `$embeddedTemplates` is null
Related to https://github.com/symfony/symfony/pull/59886, in case `$embeddedTemplates` is null
Commits
-------
81c1fcc7d6 Fix `ModuleNode` instanciation when `$embeddedTemplates` is null
This PR was merged into the 3.x branch.
Discussion
----------
reduce the number of deprecations being triggered
Triggering deprecations for specific arguments is not needed as the method itself is deprecated as well.
Commits
-------
155d0faab4 reduce the number of deprecations being triggered
This PR was merged into the 3.x branch.
Discussion
----------
merge the Nodes and Node sections
Commits
-------
f8b01ebd98 merge the Nodes and Node sections
This PR was merged into the 3.x branch.
Discussion
----------
Avoid polluting ModuleNode::toString() with embedded templates
Commits
-------
3d760aec1c Avoid polluting ModuleNode::toString() with embedded templates
This PR was merged into the 3.x branch.
Discussion
----------
remove not needed code
Commits
-------
719bba9d1e Simplify code
da64c42dc2 Add tests
53facb74c1 remove not needed code
This PR was merged into the 3.x branch.
Discussion
----------
Improve docs on creating new tags
/cc `@smnandre`
Commits
-------
96dade342f Improve docs on creating new tags
This PR was merged into the 3.x branch.
Discussion
----------
Fix Error when the trace has Twig file/line information instead of the original PHP info
See https://github.com/twigphp/Twig/pull/4592/files#r1966616393
/cc `@smnandre`
Commits
-------
7b43bd0fd7 Fix Error when the trace has Twig file/line information instead of the original PHP info
This PR was merged into the 3.x branch.
Discussion
----------
Sync Error file and line
The PHP exception file and name go together. So, we should only update the line number only if we have a file.
Commits
-------
4a121d90c6 Sync Error file and line
This PR was merged into the 3.x branch.
Discussion
----------
Remove template source from Template::loadTemplate()
Closes#3266
The first commit supports string and Source. But I think we don't even need to pass anything (that's the other commits).
Commits
-------
d7702840da Remove $templateName from Template::loadTemplate()
This PR was merged into the 3.x branch.
Discussion
----------
Make `in_array()` calls strict
I propose to add `strict: true` to all calls to `in_array()`, making the calls faster.
Commits
-------
9c6b95f2a6 Make `in_array()` calls strict
This PR was merged into the 3.x branch.
Discussion
----------
Fix testing and expression when it evaluates to an instance of Markup
Refs #3651
Commits
-------
d72c1c6b1e Fix testing and expression when it evaluates to an instance of Markup
This PR was merged into the 3.x branch.
Discussion
----------
Make the defined test implementation more generic
Commits
-------
2d84abfd08 Make the defined test implementation more generic