Vincent Langlet
cc12df995c
Introduce registerUndefinedTestCallback
2025-09-16 07:40:27 +02:00
Nicolas Grekas
85a4817128
CS fixes
2025-07-29 10:07:07 +02:00
Fabien Potencier
151aa4ecda
Fix CS
2025-02-14 12:57:03 +01:00
Fabien Potencier
4b57f48a65
Use generics in ExpressionParsers
2025-02-14 08:38:53 +01:00
Fabien Potencier
f67078b5c4
Move Operators to ExpressionParsers, deprecate ExpressionParser
2025-02-14 08:38:53 +01:00
Fabien Potencier
df877a1d53
Introduce operator classes to describe operators provided by extensions instead of arrays
2025-02-14 08:38:53 +01:00
Fabien Potencier
76062c8d51
Fix CS
2025-01-19 16:54:05 +01:00
Fabien Potencier
9d9c9d81e9
Improve YieldReady support docs
2024-11-11 09:38:36 +01:00
Fabien Potencier
2081b1ff74
Deprecate using the not unary operator without parenthesis
2024-10-02 14:16:34 +02:00
Fabien Potencier
f4aacafd78
Deprecate using ?? without explicit parentheses
2024-10-01 21:58:05 +02:00
Fabien Potencier
00ba8046b0
Add test
2024-09-25 17:28:51 +02:00
Fabien Potencier
ef58791fa4
Add the possibility to reset globals
2024-09-07 16:47:00 +02:00
Fabien Potencier
f5300784df
bug #4281 Fix wrong format of Environment::VERSION_ID constant (emodric)
...
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Fix wrong format of `Environment::VERSION_ID` constant
It seems that format of `Environment::VERSION_ID` constant was (erroneously?) changed with Twig 3.10.0.
Commits
-------
a219d9e7 Fix wrong format of `Environment::VERSION_ID` constant
2024-09-06 13:47:41 +02:00
Edi Modrić
a219d9e77f
Fix wrong format of Environment::VERSION_ID constant
2024-09-06 13:47:39 +02:00
Fabien Potencier
2ae0c0d38c
Fix CS
2024-09-06 12:33:38 +02:00
Alexandre Daubois
797e490356
Improve exception expectations reliability
2024-09-04 15:22:48 +02:00
Alexander M. Turek
3a4d513ffe
Fix testExtensionsAreNotInitializedWhenRenderingACompiledTemplate
2024-09-02 20:07:39 +02:00
Fabien Potencier
5fca700cbd
Deprecate the fact that the extends and use tags are always allowed in a sandboxed template
2024-08-28 13:40:53 +02:00
Vincent Langlet
254abc8c4c
Add test about version
2024-08-18 18:25:33 +02:00
Fabien Potencier
e4e95f5b86
Replace template loader mocks by ArrayLoader
2024-07-24 08:27:23 +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
Nicolas Grekas
8c43456ac6
Fix capturing output from extensions that still use echo
2024-04-30 16:48:10 +02:00
Fabien Potencier
a71ae1923e
Use ::class everywhere
2024-04-19 10:26:00 -04: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
Fabien Potencier
81751d6671
Add "registerUndefinedTokenParserCallback"
2020-12-31 09:12:48 +01:00
Fabien Potencier
879fb0adcc
Merge branch '2.x' into 3.x
...
* 2.x:
removed usage of getmockBuilder() when not needed
removed usage of getmockBuilder() when not needed
2019-08-08 13:35:34 +02:00
Fabien Potencier
c7b0a459ca
removed usage of getmockBuilder() when not needed
2019-08-08 13:34:04 +02:00
Fabien Potencier
656c295ed9
Merge branch '1.x' into 2.x
...
* 1.x:
removed usage of getmockBuilder() when not needed
2019-08-08 13:33:07 +02:00
Fabien Potencier
5861a539e4
removed usage of getmockBuilder() when not needed
2019-08-08 11:59:51 +02:00
Fabien Potencier
10edd832d2
code cleanup
2019-08-08 11:07:02 +02:00
Fabien Potencier
fec3fd859f
fixed PHPUnit deprecations
2019-08-08 11:06:15 +02:00
Fabien Potencier
5e3ede955b
Merge branch '2.x' into 3.x
...
* 2.x:
Fix PHPUnit deprecations
Update to PhpUnitBridge and fix deprecations
2019-08-08 11:05:13 +02:00
Fabien Potencier
5ebcecf24b
Fix PHPUnit deprecations
2019-08-08 11:03:05 +02:00
Jérémy Derussé
b776e41f5a
Update to PhpUnitBridge and fix deprecations
2019-08-08 09:39:49 +02:00
Fabien Potencier
6823b64cad
moved test under tests/
2019-06-30 14:56:12 +02:00
Fabien Potencier
1e3bb75010
moved test under tests/
2019-06-30 14:51:54 +02:00
Fabien Potencier
22a1317249
moved tests under tests/
2019-06-30 14:48:27 +02:00