Commit Graph

7215 Commits

Author SHA1 Message Date
Fabien Potencier 3c7c97e669 bug #4619 Fix wrong array index (again) (fabpot)
This PR was merged into the 3.x branch.

Discussion
----------

Fix wrong array index (again)

Commits
-------

09f9a22310 Fix wrong array index (again)
2025-03-21 10:06:23 +01:00
Fabien Potencier 09f9a22310 Fix wrong array index (again) 2025-03-21 09:42:17 +01:00
Fabien Potencier 77a6da9cc7 minor #4616 [Docs] Replace = by : in code examples (smnandre)
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
2025-03-20 22:33:01 +01:00
Fabien Potencier 2a17b4f495 minor #4617 [Doc] Fix code-block in html_cva (smnandre)
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
2025-03-20 22:32:34 +01:00
Fabien Potencier 7b9aee98e1 minor #4618 fix: update extension references in docs to use backticks (smnandre)
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
2025-03-20 22:32:08 +01:00
Simon André 239a060d59 fix: update extension references in docs to use backticks 2025-03-20 08:35:48 +01:00
Simon André a7c0482dc9 [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)
2025-03-20 07:30:17 +01:00
Simon André 84b0499dbd [Docs] Replace = by : in code examples
* function/include
* filters/format_number
2025-03-20 07:23:44 +01:00
Fabien Potencier 95596ce95a minor #4615 fix: deprecated documentation (Garfield-fr)
This PR was merged into the 3.x branch.

Discussion
----------

fix: deprecated documentation

Commits
-------

c325912724 fix: deprecated documentation
2025-03-14 13:18:50 -07:00
Bertrand Zuchuat c325912724 fix: deprecated documentation
Co-authored-by: Bertrand Zuchuat <bertrand.zuchuat@gmail.com>
2025-03-14 21:10:34 +01:00
Fabien Potencier 8440cf4ac2 minor #4610 Use : instead of = for named argument in the docs (jdreesen)
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
2025-03-06 18:33:52 +01:00
Jacob Dreesen ccec90c85c Use : instead of = for named argument in the docs 2025-03-06 17:34:44 +01:00
Fabien Potencier ffd515977e minor #4608 use EmptyNode instead of an Nodes instance without children (xabbuh)
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
2025-03-01 08:08:39 +01:00
Christian Flothmann e31a6e4534 use EmptyNode instead of an Nodes instance without children 2025-02-28 22:12:08 +01:00
Fabien Potencier 4692c36145 minor #4607 Fix ModuleNode instanciation when $embeddedTemplates is null (alexandre-daubois)
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
2025-02-28 21:07:09 +01:00
Alexandre Daubois 81c1fcc7d6 Fix ModuleNode instanciation when $embeddedTemplates is null 2025-02-28 20:12:40 +01:00
Fabien Potencier d6c1112f96 minor #4605 reduce the number of deprecations being triggered (xabbuh)
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
2025-02-28 16:10:01 +01:00
Fabien Potencier 74ad2aa9fd minor #4606 merge the Nodes and Node sections (xabbuh)
This PR was merged into the 3.x branch.

Discussion
----------

merge the Nodes and Node sections

Commits
-------

f8b01ebd98 merge the Nodes and Node sections
2025-02-28 16:09:21 +01:00
Christian Flothmann f8b01ebd98 merge the Nodes and Node sections 2025-02-28 14:40:03 +01:00
Christian Flothmann 155d0faab4 reduce the number of deprecations being triggered
Triggering deprecations for specific arguments is not needed as the method
itself is deprecated as well.
2025-02-28 14:36:39 +01:00
Fabien Potencier 76b86aa9da Add missing @deprecated tag 2025-02-28 09:01:15 +01:00
Fabien Potencier c0db761477 minor #4604 Avoid polluting ModuleNode::toString() with embedded templates (fabpot)
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
2025-02-28 08:58:45 +01:00
Fabien Potencier 3d760aec1c Avoid polluting ModuleNode::toString() with embedded templates 2025-02-28 08:57:55 +01:00
Fabien Potencier 1fee48eb3b minor #4603 remove not needed code (xabbuh, fabpot)
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
2025-02-28 08:56:53 +01:00
Fabien Potencier 719bba9d1e Simplify code 2025-02-28 08:54:29 +01:00
Fabien Potencier da64c42dc2 Add tests 2025-02-28 08:52:34 +01:00
Fabien Potencier 71f83ecd0e Tweak Sandbox docs 2025-02-28 07:30:52 +01:00
Fabien Potencier 932a584971 minor #4601 Improve docs on creating new tags (fabpot)
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
2025-02-27 11:10:17 +01:00
Fabien Potencier 96dade342f Improve docs on creating new tags 2025-02-27 10:07:32 +01:00
Christian Flothmann 53facb74c1 remove not needed code 2025-02-27 09:49:34 +01:00
Fabien Potencier 4e1fa3aa43 Remove obsolete comment 2025-02-26 22:19:38 +01:00
Fabien Potencier b86fd0a059 Remove obsolete files 2025-02-26 22:13:11 +01:00
Fabien Potencier b6e7097c02 minor #4600 Move some tests (fabpot)
This PR was merged into the 3.x branch.

Discussion
----------

Move some tests

Commits
-------

56204e951a Move some tests
2025-02-26 22:11:16 +01:00
Fabien Potencier 56204e951a Move some tests 2025-02-26 22:10:10 +01:00
Fabien Potencier 33a08191b9 bug #4599 Fix Error when the trace has Twig file/line information instead of the original PHP info (fabpot)
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
2025-02-26 21:54:22 +01:00
Fabien Potencier 7b43bd0fd7 Fix Error when the trace has Twig file/line information instead of the original PHP info 2025-02-26 21:02:58 +01:00
Fabien Potencier 02118c7ebd bug #4598 Sync Error file and line (fabpot)
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
2025-02-26 13:39:00 +01:00
Fabien Potencier 4a121d90c6 Sync Error file and line 2025-02-26 13:26:24 +01:00
Fabien Potencier 7cde13f6c9 bug #4595 Improve error reporting (fabpot)
This PR was merged into the 3.x branch.

Discussion
----------

Improve error reporting

Commits
-------

d5dc3eee99 Improve error reporting
2025-02-22 18:27:58 +01:00
Fabien Potencier ad203c774d bug #4583 Remove template source from Template::loadTemplate() (fabpot)
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()
2025-02-22 10:43:11 +01:00
Fabien Potencier d5dc3eee99 Improve error reporting 2025-02-22 10:22:21 +01:00
Fabien Potencier d13d31bb68 minor #4594 Simplify Error (smnandre)
This PR was merged into the 3.x branch.

Discussion
----------

Simplify Error

Follows #4593

Commits
-------

6a651ccfdc Simplify Error
2025-02-22 10:02:33 +01:00
Fabien Potencier c43cd3e4fb minor #4593 Simplify code (fabpot)
This PR was merged into the 3.x branch.

Discussion
----------

Simplify code

Commits
-------

68481a2a3a Simplify code
2025-02-22 09:59:37 +01:00
Simon André 6a651ccfdc Simplify Error 2025-02-22 04:07:17 +01:00
Fabien Potencier 68481a2a3a Simplify code 2025-02-22 00:03:13 +01:00
Fabien Potencier d7702840da Remove $templateName from Template::loadTemplate() 2025-02-21 23:48:41 +01:00
Fabien Potencier 1c6ac163c9 minor #4589 Make in_array() calls strict (alexandre-daubois)
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
2025-02-21 19:06:58 +01:00
Fabien Potencier d187727e0b feature #4591 Fix testing and expression when it evaluates to an instance of Markup (fabpot)
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
2025-02-21 18:34:44 +01:00
Fabien Potencier d72c1c6b1e Fix testing and expression when it evaluates to an instance of Markup 2025-02-21 18:29:32 +01:00
Fabien Potencier 9f275f6ac6 feature #4590 Make the defined test implementation more generic (fabpot)
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
2025-02-21 18:22:44 +01:00