This PR was squashed before being merged into the 1.x branch.
Discussion
----------
added PHP 8.1 as experimental
fixes#3494
Commits
-------
bef89dcc added PHP 8.1 as experimental
This PR was merged into the 1.x branch.
Discussion
----------
Fix length filter doc Add some return types
These return types preemptively tell consumers that Twig 4 / PHP 9 might add real return types here.
For `Profile`, we can add the return types right away because the class is `@final`.
Spotted by DebugClassLoader comparing return types of internal PHP base types / magic methods.
Commits
-------
50d032c4 Add some return types
This PR was merged into the 1.x branch.
Discussion
----------
Adding link to the SymfonyCasts Twig tutorial
Hi!
We have (and have had) for a long time, a really nice Twig screencast on SymfonyCasts with interactive coding challenges so people can play with Twig. I thought a link from Twig's docs might be useful :). I was also thinking a link from https://twig.symfony.com/doc/3.x/ might make sense, but I think this isn't modifiable directly via the docs (but tell me if I'm wrong).
Here's the "look":
<img width="776" alt="Screen Shot 2021-01-13 at 1 07 40 PM" src="https://user-images.githubusercontent.com/121003/104491678-93ef6480-55a0-11eb-9dce-db24c0748267.png">
Thanks!
Commits
-------
500a7da9 Adding link to the SymfonyCasts Twig tutorial
This PR was merged into the 1.x branch.
Discussion
----------
Enhancement: Use no_explicit_use_of_code_block_php rule
Commits
-------
87eb1396 Enhancement: Use no_explicit_use_of_code_block_php rule
This PR was merged into the 1.x branch.
Discussion
----------
Enhancement: Use GithubActions instead of Travis for tests
You can see the first run here: https://github.com/OskarStark/Twig/pull/3
Commits
-------
4438d4c1 Enhancement: Use GithubActions instead of Travis for tests
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.
Discussion
----------
Fix `odd` not working for negative numbers
Fixes https://github.com/twigphp/Twig/issues/3424
Commits
-------
53a3ccd2 Fix `odd` not working for negative numbers
This PR was squashed before being merged into the 1.x branch.
Discussion
----------
Fix "include(template_from_string())" when not using a sandbox
Closed#3411
Commits
-------
df9c9f21 Fix "include(template_from_string())"
3d91e335 Fix PHPUnit config
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead.
Discussion
----------
[Documentation] Emphase the fact that the include tag outputs data
Commits
-------
ef6debec Emphase the fact that the include tag outputs data
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.
Discussion
----------
Fix missing delimiter for preg_quote in lexer
Is is a really edge case (PHP < 7.3 and '#' as whitespace_trim symbol), but for the sake of consistency here's a proper fix.
Commits
-------
41605057 Fix missing delimiter for preg_quote in lexer