Vincent Langlet
29fce6de1e
Bump Phpstan to level 4
2024-12-02 20:49:24 +01:00
Fabien Potencier
82cde4edcb
Fix CS
2024-11-30 09:45:07 +01:00
Fabien Potencier
c62c104127
Fix tests
2024-10-25 07:35:14 +02:00
Fabien Potencier
4698d15b8e
Remove obsolete code, remove deprecations
2024-10-24 08:23:21 +02:00
Fabien Potencier
ef63506239
Merge branch '3.x' into 4.x
...
* 3.x:
Improve ImportNode impl
Rename Node classes related to variables
2024-10-24 07:57:29 +02:00
Fabien Potencier
fc15e7ccbc
Rename Node classes related to variables
2024-10-23 12:36:57 +02:00
Fabien Potencier
99a85a7b5e
Remove deprecated/obsolete features
2024-10-22 12:20:57 +02:00
Fabien Potencier
560988e2e1
Merge branch '3.x' into 4.x
...
* 3.x:
Remove MacroAutoImportNodeVisitor
Simplify code
Rework macros handling
2024-10-22 11:13:46 +02:00
Fabien Potencier
1105964873
Rework macros handling
2024-10-20 21:53:20 +02:00
Fabien Potencier
025278f576
Merge branch '3.x' into 4.x
...
* 3.x:
Introduce a way to test Twig callables at compile time
Allow arrow functions everywhere
Fix deprecation dep feature
2024-10-08 18:44:24 +02:00
Fabien Potencier
62f0a96b68
Introduce a way to test Twig callables at compile time
2024-10-08 18:41:34 +02:00
Fabien Potencier
5d1334116d
Remove obsolete code
2024-09-27 08:04:04 +02:00
Fabien Potencier
0c6bd47d6b
Merge branch '3.x' into 4.x
...
* 3.x:
Deprecate using Node directly, introduce EmptyNode and Nodes
Add support for inline comments
Update plural.rst: Fixing(?) broken links
Fix CS
Add support for accessing class constants with the dot operator
Fix getting a property on an object casted to an array
Replace strtr() by strtolower()
Improve escape deprecation message
Remove useless assign in compiled code
Add fixture filename as key
Be more precise about double-escaping
Fix template name in error for an unknown dynamic extends called from an include
2024-09-27 07:59:52 +02:00
Fabien Potencier
8b278986b8
Deprecate using Node directly, introduce EmptyNode and Nodes
2024-09-27 07:42:41 +02:00
Fabien Potencier
61aa645a30
Merge branch '3.x' into 4.x
...
* 3.x:
Fix doc markup
Add an example on how to iterate over a string
Remove NodeCaptureInterface from TypesNode
Use CPP in full code base
Add types tag
Bump version
Bump version
Prepare the 3.12.0 release
Fix CS
Add conditional return types to `ensureTraversable`
Add return type `isTraitable`
2024-08-30 12:38:56 +02:00
Fabien Potencier
70b912fa10
minor #4228 Use CPP in full code base (andreybolonin)
...
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Use CPP in full code base
Commits
-------
28923f42 Use CPP in full code base
2024-08-29 19:29:42 +02:00
andreybolonin1989@gmail.com
28923f4269
Use CPP in full code base
2024-08-29 19:29:39 +02:00
Fabien Potencier
e2f0128774
Merge branch '3.x' into 4.x
...
* 3.x:
Deprecate the fact that the `extends` and `use` tags are always allowed in a sandboxed template
Clarify block function
2024-08-28 13:56:42 +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
Fabien Potencier
4696eeba1d
Remove deprecated code
2024-08-26 09:30:21 +02:00
Fabien Potencier
d1f9097c7b
Merge branch '3.x' into 4.x
...
* 3.x:
Deprecate some internal methods from Parser
Move code from ExtendsTokenParser to Parser
Update Node::__toString() to include the node tag if set
Fix class name
Fix error message
2024-08-26 09:28:17 +02:00
Fabien Potencier
9e6c4a6ac1
Deprecate some internal methods from Parser
2024-08-26 09:24:03 +02:00
Fabien Potencier
cf4727606a
Move code from ExtendsTokenParser to Parser
2024-08-26 07:56:37 +02:00
Fabien Potencier
758be4dde3
Fix error message
2024-08-24 12:57:39 +02:00
Fabien Potencier
7173182537
Fix code
2024-08-24 10:55:34 +02:00
Fabien Potencier
fc9ec820bf
Simplify code
2024-08-24 10:53:54 +02:00
Fabien Potencier
00a766f58e
Merge branch '3.x' into 4.x
...
* 3.x:
Deprecate returning null from TokenParserInterface::parse()
2024-08-24 10:53:41 +02:00
Fabien Potencier
0c75136162
Deprecate returning null from TokenParserInterface::parse()
2024-08-24 10:52:24 +02:00
Fabien Potencier
5678ee080d
Merge branch '3.x' into 4.x
...
* 3.x:
Refactor code
Add a test
2024-08-20 17:21:22 +02:00
Fabien Potencier
31037d0e51
Refactor code
2024-08-20 15:39:54 +02:00
Fabien Potencier
62cc16f548
Merge branch '3.x' into 4.x
...
* 3.x:
Remove remaining const optimizations
2024-08-15 20:26:12 +02:00
Simon André
c662e0ce27
Remove remaining const optimizations
...
After #4198 some `Token::` const optimization remains.
This PR remove them.. **in case** it was not intended
2024-08-15 19:11:55 +02:00
Fabien Potencier
c3791fe986
Merge branch '3.x' into 4.x
...
* 3.x:
Remove const optimization
2024-08-12 09:43:20 +02:00
Fabien Potencier
cd0ac3cc0a
Remove const optimization
2024-08-12 09:40:52 +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
67cb9a06fe
Merge branch '3.x' into 4.x
...
* 3.x:
Update PHPUnit config
Optimize sprintf() calls for PHP 8.4
2024-06-21 08:27:27 +02:00
Fabien Potencier
b63bde3063
Optimize sprintf() calls for PHP 8.4
2024-06-21 08:16:55 +02:00
Fabien Potencier
ae7e6cc9a3
Merge branch '3.x' into 4.x
...
* 3.x:
Fix CS
Remove redundant "$thing instanceof \Countable" check
Update PHPUnit schema
fix TwigExtraBundle tests with Symfony 6.0/6.1
2024-02-10 10:03:27 +01:00
Fabien Potencier
f7f11ea410
Fix CS
2024-02-10 09:52:03 +01:00
Fabien Potencier
f9871531b7
Merge branch '3.x' into 4.x
...
* 3.x:
Fxi some errors reported by phpstan
2024-02-05 19:00:15 +01:00
Fabien Potencier
2b2ac80d34
Fxi some errors reported by phpstan
2024-02-05 17:48:36 +01:00
Fabien Potencier
35640b6d2d
Add type hints to private properties
2023-12-14 20:43:37 +01:00
Fabien Potencier
fed8dd102b
Use ::class
2023-12-09 15:33:38 +01:00
Jérôme Tamarelle
1d5c09285f
Use PHP 8.0 functions with polyfill
2023-10-08 17:11:07 +02:00
Fabien Potencier
5193653ecb
Fix CS
2023-10-08 09:05:22 +02:00
Fabien Potencier
e33577f1be
Merge branch '2.x' into 3.x
...
* 2.x:
do not reuse internally generated variable names during parsing
2022-02-25 09:30:09 +01:00
Christian Flothmann
1411c454c1
do not reuse internally generated variable names during parsing
2022-02-24 17:25:50 +01:00
Fabien Potencier
63b3ddd11a
Merge branch '2.x' into 3.x
...
* 2.x:
Hashing is not necessary to generate unique variable names during compilation
2021-12-14 15:28:12 -08:00
Jérôme Tamarelle
ba2b4e6dfe
Hashing is not necessary to generate unique variable names during compilation
2021-12-14 15:26:59 -08:00