This PR was merged into the 3.x branch.
Discussion
----------
Reimplement the cache tag in an adhoc way
Commits
-------
3288d8d98d Reimplement the cache tag in an adhoc way
This PR was merged into the 3.x branch.
Discussion
----------
Add some tests on balanced brackets
Commits
-------
3b605c4180 Add some tests on balanced brackets
This PR was merged into the 3.x branch.
Discussion
----------
Fix typo for html_cva code example
Fix a typo where 'red' should be 'blue' according to the code above.
Commits
-------
83da53c3f1 Fix typo for html_cva code example
This PR was merged into the 3.x branch.
Discussion
----------
Fix Token::__toString()
Broken by #4554
Commits
-------
11535e9058 Fix Token::__toString()
This PR was merged into the 3.x branch.
Discussion
----------
add missing parentheses to deprecation message
Commits
-------
431697fc05 add missing parentheses to deprecation message
This PR was merged into the 3.x branch.
Discussion
----------
Deprecate Token::getType()
This change will allow us to deprecate some types and let us trigger a deprecation.
Commits
-------
ade8bce516 Deprecate Token::getType()
This PR was merged into the 3.x branch.
Discussion
----------
Deprecate passing $ifexpr to ForNode
Commits
-------
9d16de6e3d Deprecate passing $ifexpr to ForNode
This PR was merged into the 3.x branch.
Discussion
----------
Deprecate Twig\ExpressionParser::parseOnlyArguments() and Twig\ExpressionParser::parseArguments()
Commits
-------
960f6762ed Deprecate Twig\ExpressionParser::parseOnlyArguments() and Twig\ExpressionParser::parseArguments()
This PR was merged into the 3.x branch.
Discussion
----------
Fix inheritance logic to be able to use instanceof ContextVariable instead of NameExpression
Commits
-------
b6d9dd62ee Fix inheritance logic to be able to use instanceof ContextVariable instead of NameExpression
This PR was squashed before being merged into the 3.x branch.
Discussion
----------
Add return type annotations on Twig 3 to prepare Twig 4
Started to add missing type annotation following `@stof` comment [here](https://github.com/twigphp/Twig/pull/4523#discussion_r1901915880).
Update: I checked here every class (but one) in the `src` directory.
But you should ~~probably~~ **certainely** have another look.
Remains:
- src/ExpressionParser.php, where i'm not confident enough about the best return types (AbstractExpression|null works almost everytime, but lack some precision)
- extra directory
- tests directory
I'm happy to let them to someone else.... this was less fun than I expected 😅
Commits
-------
82be13429c Add return type annotations on Twig 3 to prepare Twig 4
This PR was merged into the 3.x branch.
Discussion
----------
Fixing minor typo in inline_css.rst
The inline_css filter ~inline~ inlines CSS styles in HTML documents:
Commits
-------
498fb5da4c Fixing minor typo in Update inline_css.rst
This PR was merged into the 3.x branch.
Discussion
----------
Ignore static properties when using the dot operator
Fix#4547
Commits
-------
1d5180549f Ignore static properties when using the dot operator
This PR was merged into the 3.x branch.
Discussion
----------
Fix constant() behavior when used with ??
The fix is broader than just this bug. Basically, it happens when we clone a Node for which an referenced Node will be modified later on.
Commits
-------
a998723b70 Fix constant() behavior when used with ??