Fabien Potencier
d2eab12e70
Add support for first class callables
2024-07-14 13:56:14 +02:00
Fabien Potencier
bb967b3dd3
Make compatible with PHP<8
2024-07-14 12:13:12 +02:00
Fabien Potencier
093f51a8b9
Extract ReflectionCallable to make it reusable
2024-07-14 12:06:15 +02:00
Fabien Potencier
6f12d008be
Make a small optimization
2024-07-14 11:04:52 +02:00
Christian Flothmann
8602b7f3dc
simplify an iterable check
2024-07-05 23:09:31 +02:00
Fabien Potencier
2dacaadd98
Tweak code, tests, and docs for shuffle
2024-07-05 09:39:44 +02:00
sarah-eit
17430ae5ac
Add shuffle filter
2024-07-05 09:20:37 +02:00
Fabien Potencier
2f8219e691
Remove usage of uniqid
2024-07-01 18:40:58 +02:00
Pierre
c5c95a2d5c
Issue #3828 : Add sequence and mapping tests
2024-06-22 19:48:59 +02:00
Fabien Potencier
c77354ebad
Add missing comment
2024-06-22 19:44:04 +02:00
Fabien Potencier
c44be99a84
Rename array to sequence
2024-06-22 19:37:51 +02:00
Fabien Potencier
5157402a77
Rename hash to mapping
2024-06-22 19:36:24 +02:00
Fabien Potencier
b63bde3063
Optimize sprintf() calls for PHP 8.4
2024-06-21 08:16:55 +02:00
Fabien Potencier
71d6c82de6
Deprecate CallExpression::compileArguments
2024-06-18 17:13:26 +02:00
Fabien Potencier
ab071efe3b
Bump version
2024-05-31 17:05:59 +02:00
Fabien Potencier
67f29781ff
Prepare the 3.10.3 release
2024-05-16 11:04:27 +01:00
Nicolas Grekas
504252835c
Fix parse error in generated code when using CaptureNode
2024-05-16 11:46:35 +02:00
Fabien Potencier
7069d82f23
Bump version
2024-05-14 07:06:34 +01:00
Fabien Potencier
7aaed0b831
Prepare the 3.10.2 release
2024-05-14 07:04:16 +01:00
Fabien Potencier
04b1ad3ced
Fix old escaper signature + add docs
2024-05-13 18:21:17 +02:00
Fabien Potencier
0bdc73a599
Bump version
2024-05-12 08:17:25 +02:00
Fabien Potencier
3af5ab2e52
Prepare the 3.10.1 release
2024-05-12 08:16:18 +02:00
Fabien Potencier
1953f77844
Fix BC break on escaper extension
2024-05-11 21:02:20 +02:00
Fabien Potencier
f6ce88df2f
Fix constant return type
2024-05-11 20:51:17 +02:00
Fabien Potencier
bfc3b7b19b
Bump version
2024-05-11 09:45:17 +02:00
Fabien Potencier
34422f9004
Prepare the 3.10.0 release
2024-05-11 09:44:16 +02:00
Fabien Potencier
6da7a95fba
bug #4081 Fix blocks not available under some circumstancies (fabpot)
...
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Fix blocks not available under some circumstancies
Fix #4079
Commits
-------
55ae2149 Add more tests
d30b72c3 Fix blocks not available under some circumstancies
2024-05-11 09:03:44 +02:00
Fabien Potencier
d30b72c364
Fix blocks not available under some circumstancies
2024-05-11 08:44:27 +02:00
Fabien Potencier
799355dc82
Remove double ; in generated code
2024-05-08 11:17:29 +02:00
Fabien Potencier
00c43a9c38
Fix wrong @throws annotation
2024-05-04 19:05:47 +02:00
Fabien Potencier
f2c9795b26
Fix EscaperExtension constructor to not change from previous releases (will be the same in 4.x as well)
2024-05-04 18:27:46 +02:00
Fabien Potencier
450d2fb77a
feature #4072 Move back default strategy to the extension (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Move back default strategy to the extension
Commits
-------
22810841 Move back default strategy to the extension
2024-05-04 11:38:35 +02:00
Fabien Potencier
22810841ba
Move back default strategy to the extension
2024-05-04 08:51:08 +02:00
Fabien Potencier
59542c3caf
Fix wrong tests
2024-05-04 08:32:54 +02:00
Fabien Potencier
0d1a937f61
Fix CS
2024-05-01 18:23:14 +02:00
Fabien Potencier
b222be9974
Fix CS
2024-05-01 16:06:53 +02:00
Fabien Potencier
0a275945af
Make some CoreExtension methods part of the public API
2024-05-01 14:11:02 +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
c2c2058c33
feature #4055 Extract the escaping logic to a runtime (fabpot)
...
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Extract the escaping logic to a runtime
Commits
-------
ead768a4 -
e4a78534 Add missing `@deprecated` tags
d728d1b8 Add more information about migrating away from twig_escape_filter()
70b2e3ca Fix compat with older versions of PHP
84bff064 Extract the escaping logic to a runtime
2024-05-01 09:13:27 +02:00
Fabien Potencier
c133e2d962
bug #4062 Fix capturing output from extensions that still use echo (nicolas-grekas)
...
This PR was merged into the 3.x branch.
Discussion
----------
Fix capturing output from extensions that still use echo
Fix #4039
Commits
-------
8c43456a Fix capturing output from extensions that still use echo
2024-04-30 16:58:19 +02:00
Nicolas Grekas
8c43456ac6
Fix capturing output from extensions that still use echo
2024-04-30 16:48:10 +02:00
Fabien Potencier
82f8864e7b
Fix a @return type hint
2024-04-30 15:38:55 +02:00
Fabien Potencier
7518f0b15c
minor #4061 Fix a test (fabpot)
...
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Fix a test
Commits
-------
fa714ce6 Fix CS
c2fc437f Fix a test
2024-04-30 15:32:11 +02:00
Fabien Potencier
fa714ce6bd
Fix CS
2024-04-30 15:30:51 +02:00
Fabien Potencier
70551da3c3
minor #4060 Simplify sandbox code (fabpot)
...
This PR was merged into the 3.x branch.
Discussion
----------
Simplify sandbox code
Commits
-------
469d52d1 Simplify sandbox code
2024-04-30 15:27:30 +02:00
Fabien Potencier
c2fc437f6a
Fix a test
2024-04-30 15:23:35 +02:00
Fabien Potencier
e142e3bf78
Fix type
2024-04-30 13:43:26 +02:00
Fabien Potencier
469d52d1b8
Simplify sandbox code
2024-04-30 13:40:56 +02:00