* 3.x:
Add support for tempest/markdown in markdown-extra
Add the include_only function to render a template without access to the current context
Clarify duplicate macro deprecation message
Deduplicate template error handling
# Conflicts:
# .gitignore
# CHANGELOG
# extra/markdown-extra/composer.json
# src/Extension/CoreExtension.php
# src/Parser.php
# src/Template.php
# tests/Fixtures/macros/duplicate_definition.legacy.test
* 3.x:
Set LANG=en_US.UTF-8 for the extra packages tests
Use per-extension PHPUnit bridge and force PHPUnit 11 on PHP 8.2+
Install a custom exception handler before bootstrapping KernelTestCase
Simplify code
# Conflicts:
# .github/workflows/ci.yml
# extra/twig-extra-bundle/phpunit.xml.dist
* 3.x:
Remove Drupal integration tests
Do not add : void for test methods
Fix deprecated PHP CS Fixer rules
Replace FQCN with use statements in SandboxTest
Fix CS
# Conflicts:
# .github/workflows/ci.yml
# tests/Extension/SandboxTest.php
* 3.x:
Fix CHANGELOG
Fix support for ignoring syntax erros in an undefined handler in guard
Add missing CHANGELOG
Fix timezone conversion on strings
Use correct lineno for ForElseNode
Add support for registered undefined element callbacks in tests
Add UnaryInterface
Add BinaryInterface
Reimplement the cache tag in an adhoc way
Fix CS
Fix wrong array index
Fix wrong array index
Bump min PHP version to 8.1
Add even more tests
Add some tests on balanced brackets
Bump version
Prepare the 3.19.0 release
Added configuration for commonmark use in twig-extra-bundle.
* 3.x:
Simplify enum usage in docs
Forbid adding Nodes to EmptyNode
Add phpstan analysis
Fix the intl-extra tests
Fix the string-extra tests when running with older symfony/string
Fix the exception message to match the expected one for not ready nodes
Add missing import
Add BC break note in CHANGELOG for 3.15
Fix CHANGELOG
Update CHANGELOG
Bump version
Prepare the 3.15.0 release
* 3.x:
Deprecate using the not unary operator without parenthesis
Deprecate using ?? without explicit parentheses
Add support for logical `xor` operator
Allow running CI on all branches
[Doc] Fix enum title
Document Twig vs PHP types
Drupal uses the AbstractNodeVisitor which is deprecated in 3.x and removed in 4.x, so the job fails all the time.
This should be re-enabled once Drupal can be tested against Twig 4.x.
* 3.x:
fix condition for running use_yield test with extra packages
fix the set of installed packages for TwigExtraBundle on PHP 8.0
simplify an iterable check
Fixed typo
Tweak code, tests, and docs for shuffle
Add shuffle filter
This PR was merged into the 3.x branch.
Discussion
----------
fix the set of installed packages for TwigExtraBundle on PHP 8.0
Prevents symfony/translation-contracts 3 to be installed together with symfony/string 5.4.0-RC1 (see https://github.com/twigphp/Twig/actions/runs/9804849131/job/27073398023#step:8:117). Stable releases of the String component don't suffer from this incompatibility because of symfony/symfony#44246.
Commits
-------
c79c7e7a fix the set of installed packages for TwigExtraBundle on PHP 8.0
* 3.x:
Bump version to 3.9.4-DEV
Fix a warning
Use ::class everywhere
Auto-close PRs on subtree-splits
Bump version
Prepare the 3.9.3 release
Update CHANGELOG
Ensure Lexer:: is always initialized
fix: #4033 add missing unwrap call when a TemplateWrapper instance can be present
change extended DI extension class
fix: #4029 when use_yield is true CaptureNode use iterator_to_array preserveKeys argument to false
* 3.x:
Fix bug
Tweak code
Add a deprecation when a Node uses echo/print
Fix tests
Optimize code
Add support for templates that do not have output Nodes
-
Remove some tests
-
Tweak code
Remove the new yield nodes
Remove usage of ob_* functions in favor of yielding
Tweak CI output