Fabien Potencier
102bec30f6
Merge branch '3.x' into 4.x
...
* 3.x:
Add the possibility to deprecate attributes and nodes on Node
2024-08-08 14:50:31 +02:00
Fabien Potencier
18894cf91e
Add the possibility to deprecate attributes and nodes on Node
2024-08-08 14:48:20 +02:00
Fabien Potencier
eafbee52e3
Merge branch '3.x' into 4.x
...
* 3.x:
Use trigger_deprecation() instead of trigger_error() for deprecations
Tweak docs
clarify that macros shadow other macros/functions
2024-08-08 14:47:26 +02:00
Fabien Potencier
0ce79df5c4
Use trigger_deprecation() instead of trigger_error() for deprecations
2024-08-08 14:28:28 +02:00
Fabien Potencier
a5882760df
Fix CS
2024-08-07 19:37:53 +02:00
Fabien Potencier
0131c230c7
Merge branch '3.x' into 4.x
...
* 3.x:
Fix CS
2024-08-07 19:34:39 +02:00
Fabien Potencier
f5e10e10f1
Fix CS
2024-08-07 19:34:09 +02:00
Fabien Potencier
2be34fc0ce
Merge branch '3.x' into 4.x
...
* 3.x:
Introduce ChainCache and ReadOnlyFilesystemCache
Add a note about how macros can override existing functions
Fix dumping callables on Node::__toString()
2024-08-07 14:41:48 +02:00
Fabien Potencier
fc64472145
Fix dumping callables on Node::__toString()
2024-08-04 16:35:01 +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
6e55b5f956
Simplify usage of RawFilter
2024-07-28 11:10:04 +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
e95d6b2f21
Add support for recursive loops
2024-07-28 10:08:35 +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
27f6171f2f
Add support for yielding from a generator in PrintNode
2024-07-27 16:57:14 +02:00
Fabien Potencier
8951b8f73a
Remove unneeded PHP version check
2024-07-24 13:08:43 +02:00
Fabien Potencier
6b0f2e78c2
Merge branch '3.x' into 4.x
...
* 3.x:
Refactor some tests
2024-07-24 13:03:11 +02:00
Fabien Potencier
76dcc75982
Merge branch '3.x' into 4.x
...
* 3.x:
Replace template loader mocks by ArrayLoader
[Doc] Fix javascript code-block
2024-07-24 09:53:24 +02:00
Fabien Potencier
ebcd5034ee
Refactor some tests
2024-07-24 08:44:11 +02:00
Fabien Potencier
a656293915
minor #4150 Replace template loader mocks by ArrayLoader (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Replace template loader mocks by ArrayLoader
Commits
-------
e4e95f5b Replace template loader mocks by ArrayLoader
2024-07-24 08:31:51 +02:00
Fabien Potencier
e4e95f5b86
Replace template loader mocks by ArrayLoader
2024-07-24 08:27:23 +02:00
Fabien Potencier
7f0f313f1a
Make some small internal tweaks to loops
2024-07-18 08:26:46 +02:00
Fabien Potencier
fcb36ec18a
Merge branch '3.x' into 4.x
...
* 3.x:
Add support for first class callables
2024-07-14 13:59:52 +02:00
Fabien Potencier
d2eab12e70
Add support for first class callables
2024-07-14 13:56:14 +02:00
Fabien Potencier
65b4ea4394
Add loop.changed, loop.previous, loop.next, and loop.cycle variables
2024-07-12 11:13:02 +02:00
Fabien Potencier
437ad31dfa
Move some code to LoopContext
2024-07-11 09:35:26 +02:00
Fabien Potencier
17ef0bef4b
Introduce a Loop object
2024-07-11 08:03:08 +02:00
Fabien Potencier
c250afdda0
Optimize sprintf() calls for PHP 8.4
2024-06-21 08:27:51 +02:00
Fabien Potencier
b63bde3063
Optimize sprintf() calls for PHP 8.4
2024-06-21 08:16:55 +02:00
Fabien Potencier
3046c8cc9b
minor #4076 Remove obsolete code (setAccessible(true)) (fabpot)
...
This PR was merged into the 4.x branch.
Discussion
----------
Remove obsolete code (setAccessible(true))
Commits
-------
85760a17 Remove obsolete code (setAccessible(true))
2024-05-05 09:15:43 +02:00
Fabien Potencier
85760a17fa
Remove obsolete code (setAccessible(true))
2024-05-05 09:14:07 +02:00
Fabien Potencier
e5431b1361
Modernize code
2024-05-04 18:35:53 +02:00
Fabien Potencier
3d99ed8bdb
Merge branch '3.x' into 4.x
...
* 3.x:
Move some static extension methods to non-static
Add needs_charset option for filters and functions
Fix method call
Rename some internal methods
2024-05-01 13:58:23 +02:00
Fabien Potencier
283475b102
Move some static extension methods to non-static
2024-05-01 13:48:35 +02:00
Fabien Potencier
c63f695e8a
Add needs_charset option for filters and functions
2024-05-01 13:12:48 +02:00
Fabien Potencier
16acdf69fe
Rename some internal methods
2024-05-01 10:19:22 +02:00
Fabien Potencier
8bebf01858
Merge branch '3.x' into 4.x
...
* 3.x:
-
Fix capturing output from extensions that still use echo
Add missing @deprecated tags
Add more information about migrating away from twig_escape_filter()
Fix compat with older versions of PHP
Extract the escaping logic to a runtime
2024-05-01 09:18:31 +02:00
Nicolas Grekas
8c43456ac6
Fix capturing output from extensions that still use echo
2024-04-30 16:48:10 +02:00
Fabien Potencier
5fdb1ee11a
Merge branch '3.x' into 4.x
...
* 3.x:
Fix a @return type hint
Fix CS
Fix a test
Fix type
Simplify sandbox code
Get rid of weird code
[html-extra] filter classes
Fix some inconsistencies
2024-04-30 15:46:54 +02:00
Fabien Potencier
5148d10515
Fix some inconsistencies
2024-04-28 13:15:26 +02:00
Fabien Potencier
9a11ee1c64
Merge branch '3.x' into 4.x
...
* 3.x:
Bump version to 3.9.4-DEV
Fix a warning
Use ::class everywhere
Auto-close PRs on subtree-splits
Bump version
Prepare the 3.9.3 release
Update CHANGELOG
Ensure Lexer:: is always initialized
fix : #4033 add missing unwrap call when a TemplateWrapper instance can be present
change extended DI extension class
fix : #4029 when use_yield is true CaptureNode use iterator_to_array preserveKeys argument to false
2024-04-24 08:25:00 +02:00
Gildas de Cadoudal
f7121a23bc
fix : #4029 when use_yield is true CaptureNode use iterator_to_array preserveKeys argument to false
2024-04-18 09:45:09 +02:00
Fabien Potencier
ddc966a59c
Remove deprecations
2024-04-14 11:22:32 +02:00
Fabien Potencier
90097238c1
Merge branch '3.x' into 4.x
...
* 3.x:
Add a deprecation notice when using AbstractNodeVisitor (deprecated since 2.9)
Fix doc markup
Fix CS
2024-04-14 11:11:39 +02:00
Fabien Potencier
30b5658f89
Fix CS
2024-04-14 10:22:11 +02:00
Nicolas Grekas
1af9ad0c3e
Merge branch '3.x' into 4.x
...
* 3.x:
Add `#[YieldReady]` to allow extensions to tell when they're ready for yielding
2024-02-15 11:47:41 +01:00
Nicolas Grekas
e70777405d
Add #[YieldReady] to allow extensions to tell when they're ready for yielding
2024-02-15 10:27:26 +01:00