Fabien Potencier
6b7dfe3dcc
Remove outdated references to older Twig versions
2026-09-25 23:31:09 +02:00
Fabien Potencier
cf105b566a
Merge branch '3.x' into 4.x
...
* 3.x:
Fix CS
2024-11-30 09:43:08 +01:00
Fabien Potencier
14fc89ebea
Fix CS
2024-11-30 09:42:13 +01:00
Fabien Potencier
4dd20ba005
Merge branch '3.x' into 4.x
...
* 3.x:
Add start/end time accessors on Profile
Fix 'ignore missing' when used on an 'embed' tag
Fix the possibility to override an aliased block (via use)
Add test
Add hot cache reload for templates
Add RemovableCacheInterface
Add some tests
Optimize compiled code for "set" tag
Improve how trim behaves
Add more tests
Add return types in FileystemLoader
Add compile-time checks for the "matches" operator
2024-09-26 09:28:03 +02:00
Ruud Kamphuis
15279ca8ee
Add return types in FileystemLoader
2024-09-23 12:30:37 +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
andreybolonin1989@gmail.com
28923f4269
Use CPP in full code base
2024-08-29 19:29:39 +02:00
Simon André
72bbe489e1
Add private types on 4.x
2024-08-21 20:05:41 +02:00
Fabien Potencier
b5372f5764
Merge branch '3.x' into 4.x
...
* 3.x:
Fix CS
Remove obsolete comment
Resolves #4200
2024-08-20 18:12:56 +02:00
Fabien Potencier
302971f34e
Fix CS
2024-08-20 18:10:26 +02:00
Nikola Svitlica a.k.a TheCelavi
6ef13d1e0b
Resolves #4200
2024-08-20 17:30:37 +02:00
Simon André
21f08dcfe2
Add return types missed in #4211
2024-08-17 23:34:44 +02:00
Simon André
470965fcc2
Add missing return types in 4.0
2024-08-17 23:10:07 +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
af8ec178b6
Remove list() usage in code
2024-01-05 12:46:24 +01:00
Fabien Potencier
35640b6d2d
Add type hints to private properties
2023-12-14 20:43:37 +01:00
Fabien Potencier
308aa5ba45
Remove usage of list()
2023-12-09 15:33:38 +01:00
Fabien Potencier
fed8dd102b
Use ::class
2023-12-09 15:33:38 +01:00
Fabien Potencier
f1b5227477
minor #3884 Use PHP 8.0 functions with polyfill (GromNaN)
...
This PR was merged into the 3.x branch.
Discussion
----------
Use PHP 8.0 functions with polyfill
Backport some changes from #3881 into 3.x using `symfony/polyfill-php80`.
- `str_starts_with`
- `str_ends_with`
- `str_contains`
- `get_debug_type`
Benefits:
- Less conflicts when both 3.x and 4.x branches will be maintained.
- Performance gain for PHP 8.0+ ([83,7% of installs](https://packagist.org/packages/twig/twig/php-stats#3 ))
Commits
-------
1d5c0928 Use PHP 8.0 functions with polyfill
2023-10-20 17:49:50 +02:00
Jérôme Tamarelle
6ca0d773c5
Convert Ternary to Elvis or Null Coalescing
2023-10-20 17:47:17 +02:00
Jérôme Tamarelle
1d5c09285f
Use PHP 8.0 functions with polyfill
2023-10-08 17:11:07 +02:00
Fabien Potencier
2e8acd94ca
Merge branch '2.x' into 3.x
...
* 2.x:
Fix a security issue on filesystem loader (possibility to load a template outside a configured directory)
2022-09-28 10:36:55 +02:00
Fabien Potencier
d6ea14aa84
Merge branch '1.x' into 2.x
...
* 1.x:
Fix a security issue on filesystem loader (possibility to load a template outside a configured directory)
2022-09-28 10:36:46 +02:00
Fabien Potencier
f8009347c4
Fix a security issue on filesystem loader (possibility to load a template outside a configured directory)
2022-07-13 16:03:29 +02:00
Fabien Potencier
ad86c88359
Merge branch '2.x' into 3.x
...
* 2.x:
Update CHANGELOG
Update CHANGELOG
Revert "bug #3499 Fix: A template name cannot be an absolute path (mvorisek)"
2021-05-16 14:07:50 +02:00
Fabien Potencier
ceb4de0448
Merge branch '1.x' into 2.x
...
* 1.x:
Update CHANGELOG
Revert "bug #3499 Fix: A template name cannot be an absolute path (mvorisek)"
2021-05-16 14:07:24 +02:00
Fabien Potencier
124f10c27e
Revert "bug #3499 Fix: A template name cannot be an absolute path (mvorisek)"
...
This reverts commit 83f26e402b , reversing
changes made to f5d3c704df .
2021-05-16 14:06:26 +02:00
Fabien Potencier
9e6e700f96
minor #3509 Some code style fixes (dionisvl)
...
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Some code style fixes
Fixes that:
- Type cast is unnecessary
- Unnecessary curly braces syntax for variable
- Operations priority might differ that except
Commits
-------
17c6371f Some code style fixes
2021-05-14 10:26:10 +02:00
Den
17c6371fb5
Some code style fixes
2021-05-14 10:26:05 +02:00
Fabien Potencier
13e360972a
Merge branch '2.x' into 3.x
...
* 2.x:
Fix CS
Fix CS
Migrate to the new PHP CS Fixer config file
Fixing links
2021-05-12 09:45:40 +02:00
Fabien Potencier
2dd1d909b9
Fix CS
2021-05-12 09:37:17 +02:00
Fabien Potencier
59f3e8e5dc
Fix CS
2021-05-12 09:19:37 +02:00
Fabien Potencier
5557d48e0e
Revert
2021-04-10 10:18:09 +02:00
Fabien Potencier
680e42979a
Merge branch '2.x' into 3.x
...
* 2.x:
Fix code for PHP 8.1
2021-04-10 10:17:37 +02:00
Fabien Potencier
953974a7b3
Fix code for PHP 8.1
2021-04-10 10:14:28 +02:00
Fabien Potencier
f1e0ebc18a
Merge branch '2.x' into 3.x
...
* 2.x:
Fix: A template name cannot be an absolute path
2021-04-07 17:57:57 +02:00
Fabien Potencier
02fe3a544c
Merge branch '1.x' into 2.x
...
* 1.x:
Fix: A template name cannot be an absolute path
2021-04-07 17:57:49 +02:00
Michael Voříšek
3a67fc7dc5
Fix: A template name cannot be an absolute path
2021-04-07 17:57:24 +02:00
Fabien Potencier
94b7c1c2f6
Merge branch '2.x' into 3.x
...
* 2.x:
Fix CS
added PHP 8.1 as experimental
2021-03-22 09:23:56 +01:00
Fabien Potencier
0b103dfeb0
Merge branch '1.x' into 2.x
...
* 1.x:
added PHP 8.1 as experimental
2021-03-22 09:23:06 +01:00
Oleg Andreyev
bef89dcc1e
added PHP 8.1 as experimental
2021-03-22 09:19:53 +01:00
Fabien Potencier
e99363231b
Fix CS
2020-06-22 08:11:03 +02:00
Nicolas Grekas
ac0f512553
[3.0] remove the most blocking return types
2019-09-20 15:04:28 +02:00
Tim van Dijen
2c1c00ba0e
Remove duplicate phpdoc
2019-06-10 12:15:10 +02:00
Fabien Potencier
54cec4e3b8
added type hints
2019-04-26 12:01:21 +02:00
Fabien Potencier
3b6728c5f9
Merge branch '2.x' into 3.x
...
* 2.x:
fixed CS
bumped version to 2.9
Update TemplateWrapper.php
bumped version to 1.40
2019-04-24 17:25:27 +02:00
Fabien Potencier
a560bfb98f
Merge branch '1.x' into 2.x
...
* 1.x:
fixed CS
Update TemplateWrapper.php
bumped version to 1.40
2019-04-24 17:24:15 +02:00