Commit Graph

41 Commits

Author SHA1 Message Date
Ondřej Machulda 86997d1bef Fix opcache preload warning for unlinked anonymous class 2026-01-05 19:11:58 +01:00
Vincent Langlet cc12df995c Introduce registerUndefinedTestCallback 2025-09-16 07:40:27 +02:00
Vincent Langlet e14a2474fb Fix warning 2025-05-02 17:41:32 +02:00
Vincent Langlet 00d29e6657 Fix instantiation 2025-05-02 17:39:47 +02:00
Jérôme Tamarelle 5886907b28 Create attributes AsTwigFilter, AsTwigFunction and AsTwigTest to ease extension development 2025-03-24 22:34:21 +01:00
Fabien Potencier 151aa4ecda Fix CS 2025-02-14 12:57:03 +01:00
Fabien Potencier 79d828b09d Fix version 2025-02-14 08:47:54 +01:00
Fabien Potencier 251c0b5da9 Fix CS 2025-02-14 08:45:28 +01:00
Fabien Potencier 8ff19090f3 Fix precedence rules 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 42c82e1e9b Extract operators logic from ExpressionParser to their own classes 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
Christophe Coevoet 198fc1a9f9 Add support for registered undefined element callbacks in tests 2025-02-04 10:28:21 +01:00
Simon André 82be13429c Add return type annotations on Twig 3 to prepare Twig 4 2025-01-24 11:32:59 +01:00
Jérôme Tamarelle d8fe3bd1ec Add LastModifiedExtensionInterface and implementation in AbstractExtension to track modification of runtime classes 2025-01-02 14:50:18 +01:00
Vincent Langlet fab565ca34 Update phpdoc for operators 2024-11-29 19:30:47 +01:00
Vincent Langlet 75d48db822 Add phpstan analysis 2024-11-20 20:05:33 +01:00
Fabien Potencier 0da899d911 Use get_debug_type() everywhere 2024-09-29 18:08:29 +02:00
Fabien Potencier a23cd9feeb Fix CS 2024-09-26 21:22:23 +02:00
Fabien Potencier ef58791fa4 Add the possibility to reset globals 2024-09-07 16:47:00 +02:00
Fabien Potencier 57f6119d31 Remove obsolete code 2024-09-07 14:36:55 +02:00
Fabien Potencier 148d3e079d Make various optimization for dynamic Twig callables 2024-08-12 09:45:32 +02:00
Fabien Potencier ae4f284043 Fix various phpstan errors 2024-07-30 11:17:22 +02:00
Fabien Potencier b63bde3063 Optimize sprintf() calls for PHP 8.4 2024-06-21 08:16:55 +02:00
Vincent Langlet e98a652a6c Improve phpdoc of ExtensionInterface/Environment/Expressionparser arrays 2022-11-18 10:55:01 +01:00
Fabien Potencier 81751d6671 Add "registerUndefinedTokenParserCallback" 2020-12-31 09:12:48 +01:00
Fabien Potencier f05ccdd657 Optimize fil_exists() 2020-04-24 09:48:53 +02:00
Fabien Potencier 54cec4e3b8 added type hints 2019-04-26 12:01:21 +02:00
Fabien Potencier 829cb71788 removed InitRuntimeInterface and RuntimeExtensionInterface 2019-04-25 08:39:40 +02:00
Fabien Potencier 592ab0376e feature #2965 Change false to null to allow for type hinting (fabpot)
This PR was merged into the 3.x branch.

Discussion
----------

Change false to null to allow for type hinting

Commits
-------

75333805 changed false to null to allow for type hinting
2019-04-23 18:34:47 +02:00
Fabien Potencier 5b1aad86f3 removed remaining code supporting PSR-0 class names 2019-04-23 18:21:46 +02:00
Fabien Potencier 7533380596 changed false to null to allow for type hinting 2019-04-23 17:43:53 +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 6b1a1baaff fixed phpdoc 2019-04-16 18:42:27 +02:00
Fabien Potencier 6c91803a90 added some type hints on final classes 2019-03-19 12:40:46 +01:00
Nicolas Grekas 8f9fe27622 Remove runtime deprecation that prevent smooth update 2019-03-10 11:40:58 +01:00
Fabien Potencier 2717a4769b fixed more un-namespaced classes 2019-03-06 18:17:28 +01:00
Fabien Potencier 379f0c3553 added soe missing deprecations 2019-03-05 11:53:39 +01:00
Fabien Potencier 037ee67224 switched to namespace first, PSR-0 as a fallback 2019-03-05 08:14:45 +01:00
Fabien Potencier acdf2581c9 replaced require with class_exists 2017-06-05 17:04:54 -07:00
Nicolas Grekas 71265c4000 [2.x] Add namespaced aliases 2017-05-25 08:29:23 +02:00