Fabien Potencier
5649de8a14
Fix usage of loop in a for else clause
2024-07-31 11:53:46 +02:00
Fabien Potencier
ab0c632f02
Simplify code
2024-07-31 09:35:41 +02:00
Fabien Potencier
7324404f27
Merge branch '3.x' into 4.x
...
* 3.x:
Fix various phpstan errors
Fix EscaperRuntime namespace
2024-07-31 09:34:53 +02:00
Fabien Potencier
0d09230b4b
minor #4167 Fix various phpstan errors (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Fix various phpstan errors
Commits
-------
ae4f2840 Fix various phpstan errors
2024-07-31 09:30:45 +02:00
Fabien Potencier
ae4f284043
Fix various phpstan errors
2024-07-30 11:17:22 +02:00
Fabien Potencier
b566513ef1
minor #4166 [Tests] Fix EscaperRuntime namespace (smnandre)
...
This PR was merged into the 3.x branch.
Discussion
----------
[Tests] Fix EscaperRuntime namespace
From `Twig\Tests` to `Twig\Tests\Runtime`
Commits
-------
df4e66f4 Fix EscaperRuntime namespace
2024-07-30 09:30:10 +02:00
Simon André
df4e66f420
Fix EscaperRuntime namespace
...
From `Twig\Tests` to `Twig\Tests\Runtime`
2024-07-30 00:36:02 +02:00
Fabien Potencier
1a83f2c95b
Use RawFilter
2024-07-28 11:19:22 +02:00
Fabien Potencier
35e2645073
Merge branch '3.x' into 4.x
...
* 3.x:
Use RawFilter in cache extra
2024-07-28 11:16:41 +02:00
Fabien Potencier
ae04075ed1
minor #4163 Use RawFilter in cache extra (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Use RawFilter in cache extra
Commits
-------
8e72c84c Use RawFilter in cache extra
2024-07-28 11:16:28 +02:00
Fabien Potencier
8e72c84c63
Use RawFilter in cache extra
2024-07-28 11:12:39 +02:00
Fabien Potencier
b36d9bb7ed
Merge branch '3.x' into 4.x
...
* 3.x:
Simplify usage of RawFilter
2024-07-28 11:11:24 +02:00
Fabien Potencier
76becd4246
minor #4162 Simplify usage of RawFilter (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Simplify usage of RawFilter
Commits
-------
6e55b5f9 Simplify usage of RawFilter
2024-07-28 11:11:17 +02:00
Fabien Potencier
6e55b5f956
Simplify usage of RawFilter
2024-07-28 11:10:04 +02:00
Fabien Potencier
b50ff6173e
Remove deprecate feature
2024-07-28 10:58:16 +02:00
Fabien Potencier
2889655bd4
Merge branch '3.x' into 4.x
...
* 3.x:
Fix raw filter compat
2024-07-28 10:57:50 +02:00
Fabien Potencier
67c7967de2
bug #4161 Fix raw filter compat (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Fix raw filter compat
Commits
-------
a1789129 Fix raw filter compat
2024-07-28 10:57:43 +02:00
Fabien Potencier
a17891292c
Fix raw filter compat
2024-07-28 10:51:52 +02:00
Fabien Potencier
ca1dd0fb54
minor #4160 Simplify accessing outer loop objects example (fabpot)
...
This PR was merged into the 4.x branch.
Discussion
----------
Simplify accessing outer loop objects example
Commits
-------
bc11e375 Simplify accessing outer loop objects example
2024-07-28 10:34:43 +02:00
Fabien Potencier
bc11e375f6
Simplify accessing outer loop objects example
2024-07-28 10:33:30 +02:00
Fabien Potencier
e19f056326
feature #4153 Add support for recursive loops (fabpot)
...
This PR was squashed before being merged into the 4.x branch.
Discussion
----------
Add support for recursive loops
Fixes #3416
Fixes #4144
Commits
-------
481e7f0d Prevent infinite loops
fa1a217f Add another test
036c9943 Don't unset loop when it's not defined
1b9baa76 Remove usage of the internal _parent context variable in loops
c28f68f8 Add support for Escaper and Sandbox for Generator nodes
c1933323 Simplify implementation
8c5dd39b Use loop() to recurse instead of loop.recurse()
e95d6b2f Add support for recursive loops
2024-07-28 10:21:08 +02:00
Fabien Potencier
3505f7aa08
Merge branch '3.x' into 4.x
...
* 3.x:
Remove deprecate feature in docs
2024-07-28 10:14:44 +02:00
Fabien Potencier
de7767814b
Remove deprecate feature in docs
2024-07-28 10:14:39 +02:00
Fabien Potencier
c097774d99
Remove deprecated code
2024-07-28 10:14:26 +02:00
Fabien Potencier
0298159c5f
Merge branch '3.x' into 4.x
...
* 3.x:
Remove magic handling of the raw filter
2024-07-28 10:13:17 +02:00
Fabien Potencier
05475bf843
minor #4157 Remove magic handling of the raw filter (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Remove magic handling of the raw filter
Commits
-------
84b1b3e0 Remove magic handling of the raw filter
2024-07-28 10:10:22 +02:00
Fabien Potencier
481e7f0d81
Prevent infinite loops
2024-07-28 10:08:38 +02:00
Fabien Potencier
fa1a217f1a
Add another test
2024-07-28 10:08:38 +02:00
Fabien Potencier
036c9943db
Don't unset loop when it's not defined
2024-07-28 10:08:38 +02:00
Fabien Potencier
1b9baa764b
Remove usage of the internal _parent context variable in loops
2024-07-28 10:08:38 +02:00
Fabien Potencier
c28f68f807
Add support for Escaper and Sandbox for Generator nodes
2024-07-28 10:08:38 +02:00
Fabien Potencier
c1933323ba
Simplify implementation
2024-07-28 10:08:38 +02:00
Fabien Potencier
8c5dd39b9b
Use loop() to recurse instead of loop.recurse()
2024-07-28 10:08:38 +02:00
Fabien Potencier
e95d6b2f21
Add support for recursive loops
2024-07-28 10:08:35 +02:00
Fabien Potencier
69f9367573
Remove a feature from the future
2024-07-28 10:04:03 +02:00
Fabien Potencier
102735df6f
minor #4159 Reorganize the for tag docs (fabpot)
...
This PR was merged into the 4.x branch.
Discussion
----------
Reorganize the for tag docs
Commits
-------
d6add5eb Reorganize the for tag docs
2024-07-28 10:02:29 +02:00
Fabien Potencier
d6add5ebde
Reorganize the for tag docs
2024-07-28 10:01:20 +02:00
Fabien Potencier
84b1b3e0b3
Remove magic handling of the raw filter
2024-07-27 20:37:22 +02:00
Fabien Potencier
212c03eb6c
Merge branch '3.x' into 4.x
...
* 3.x:
Fix optimizer mode validation in OptimizerNodeVisitor
2024-07-27 20:28:15 +02:00
Fabien Potencier
71021834cc
bug #4156 Fix optimizer mode validation in OptimizerNodeVisitor (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Fix optimizer mode validation in OptimizerNodeVisitor
Commits
-------
0e6d717f Fix optimizer mode validation in OptimizerNodeVisitor
2024-07-27 20:27:56 +02:00
Fabien Potencier
0e6d717f2d
Fix optimizer mode validation in OptimizerNodeVisitor
2024-07-27 20:27:31 +02:00
Fabien Potencier
03fbac566a
Fix test
2024-07-27 17:07:17 +02:00
Fabien Potencier
02ab3a185e
Merge branch '3.x' into 4.x
...
* 3.x:
Add support for yielding from a generator in PrintNode
2024-07-27 17:01:23 +02:00
Fabien Potencier
1920e284a9
feature #4155 Add support for yielding from a generator in PrintNode (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Add support for yielding from a generator in PrintNode
Commits
-------
27f6171f Add support for yielding from a generator in PrintNode
2024-07-27 17:01:03 +02:00
Fabien Potencier
27f6171f2f
Add support for yielding from a generator in PrintNode
2024-07-27 16:57:14 +02:00
Fabien Potencier
c87931e20d
Remove deprecated methods
2024-07-27 15:45:03 +02:00
Fabien Potencier
2050b32446
Merge branch '3.x' into 4.x
...
* 3.x:
[Doc] Fix code syntax in deprecated.rst
Deprecate NameExpression internal methods
2024-07-27 15:44:24 +02:00
Fabien Potencier
3c52cd9814
feature #4148 Deprecate NameExpression internal methods (smnandre)
...
This PR was merged into the 3.x branch.
Discussion
----------
Deprecate NameExpression internal methods
Deprecate two methods from `Twig\Node\Expression\NameExpression`:
* `isSimple()`: did not find any usage in Twig (or even Symfony) repositories
* `isSpecial()`: inlined for better performance ($name is available in the method)
Commits
-------
3531f959 Deprecate NameExpression internal methods
2024-07-27 15:43:19 +02:00
Fabien Potencier
af90f88802
minor #4154 [Doc] Fix code syntax in deprecated.rst (smnandre)
...
This PR was merged into the 3.x branch.
Discussion
----------
[Doc] Fix code syntax in deprecated.rst
Add missing backticks
https://twig.symfony.com/doc/3.x/deprecated.html#extensions
<img width="846" alt="Capture d’écran 2024-07-27 à 14 22 26" src="https://github.com/user-attachments/assets/4dfaa859-778e-4a34-86a9-acc2eb9eccb6 ">
Commits
-------
343fefae [Doc] Fix code syntax in deprecated.rst
2024-07-27 15:41:30 +02:00
Simon André
343fefae10
[Doc] Fix code syntax in deprecated.rst
...
Add missing backticks
2024-07-27 14:21:54 +02:00