Christian Flothmann
038d70f2aa
remove no longer needed PHP version checks
2024-09-02 15:38:31 +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
c250afdda0
Optimize sprintf() calls for PHP 8.4
2024-06-21 08:27:51 +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
3b5044ab32
Merge branch '3.x' into 4.x
...
* 3.x:
Fix exception when timezone is false
Fix param name in docblock (minor)
Minor fixes
2024-04-03 17:09:03 +02:00
Nicolas Grekas
b46e93c725
Minor fixes
2024-02-15 12:09:06 +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
b9cf29d53d
Remove obsolete code
2023-12-09 14:56:21 +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
d97690ff37
Merge branch '2.x' into 3.x
...
* 2.x:
Use faster hash algorithm (xxh128) on PHP 8.1
2021-12-16 11:54:25 -08:00
Jérôme TAMARELLE
4fcc6b1c47
Use faster hash algorithm (xxh128) on PHP 8.1
2021-12-15 06:29:16 +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
Alex Pott
98c2233e47
Twig2 PHP 8.1 beta compatibility
2021-07-28 09:49:43 +01: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
fcbaa669ab
Fix CS
2021-05-12 09:47:40 +02:00
Fabien Potencier
2dd1d909b9
Fix CS
2021-05-12 09:37:17 +02:00
Fabien Potencier
157fa56829
Merge branch '1.x' into 2.x
...
* 1.x:
Fix CS
Migrate to the new PHP CS Fixer config file
2021-05-12 09:27:30 +02:00
Fabien Potencier
59f3e8e5dc
Fix CS
2021-05-12 09:19:37 +02:00
Fabien Potencier
b0863c559c
Merge branch '2.x' into 3.x
...
* 2.x:
Add some return types
remove the C extension
Fix length filter doc
2021-02-02 16:25:52 +01:00
Fabien Potencier
5a60e72afa
Merge branch '1.x' into 2.x
...
* 1.x:
Add some return types
remove the C extension
Fix length filter doc
2021-02-02 16:25:09 +01:00
Nicolas Grekas
50d032c4df
Add some return types
2021-02-02 16:16:41 +01:00
Fabien Potencier
c38f96318b
Fix CS
2020-06-22 08:15:56 +02:00
Nicolas Grekas
ac0f512553
[3.0] remove the most blocking return types
2019-09-20 15:04:28 +02:00
Fabien Potencier
7ce118060b
added type hints
2019-04-27 17:06:24 +01:00
Fabien Potencier
54cec4e3b8
added type hints
2019-04-26 12:01:21 +02:00
Fabien Potencier
e8a21cfe97
changed classes marked as @final to final
2019-04-23 17:10:12 +02:00
Fabien Potencier
273b666a71
removed the obsolete lib/ directory, removed PSR-0 class aliases
2019-04-23 16:34:05 +02:00
Fabien Potencier
2973358b15
Merge branch '1.x' into 2.x
...
* 1.x:
fixed phpdoc
fixed tpyo
bumped version to 1.39.2-DEV
prepared the 1.39.1 release
2019-04-16 21:17:07 +02:00
Fabien Potencier
f54b53af03
fixed phpdoc
2019-04-16 21:16:04 +02:00
Fabien Potencier
74c8297592
Merge branch '1.x' into 2.x
...
* 1.x:
fixed CS
Disable xdebug var_dump overload for tests
Prepare for the new serialization mechanism
2019-04-07 18:41:26 +02:00
Fabien Potencier
1724e42002
fixed CS
2019-04-07 18:41:19 +02:00
fancyweb
72d7abe11c
Prepare for the new serialization mechanism
2019-04-07 14:53:54 +02:00
Fabien Potencier
1dead73882
added some type hints on constructors
2019-03-16 15:26:39 +01:00
Fabien Potencier
241f95cb25
added some type hints on private methods
2019-03-16 13:24:59 +01:00
Nicolas Grekas
0f8d66be38
Fix deprecation notes
2019-03-10 11:48:42 +01:00
Fabien Potencier
037ee67224
switched to namespace first, PSR-0 as a fallback
2019-03-05 08:14:45 +01:00
Fabien Potencier
baa70287f5
switched to namespace first, PSR-0 as a fallback
2019-03-04 21:33:40 +01:00
Fabien Potencier
aebec7d890
fixed deprecation when using Twig_Profiler_Dumper_Html
2017-06-12 09:49:15 -07:00
Maxime Steinhausser
2c174e4015
Use class_exists instead of require
2017-06-05 23:42:50 +02:00
Nicolas Grekas
5420a5e3f8
Add the aliases
2017-05-25 08:32:07 +02:00
Nicolas Grekas
71af32b306
Add namespaced aliases
2017-05-24 10:12:32 +02:00