Commit Graph

3728 Commits

Author SHA1 Message Date
Fabien Potencier dc2776359c changed arrow syntax 2019-05-03 17:09:12 +02:00
Fabien Potencier b30bce1139 added "filter", "map", and "reduce" filters 2019-05-03 17:09:12 +02:00
Fabien Potencier 5d37a3260a bug #2995 Fix partial output leak when a PHP fatal error occurs (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix partial output leak when a PHP fatal error occurs

closes #1962 (thank you @fluff for the "trick")

Commits
-------

6196fe5b fixed partial output leak when a PHP fatal error occurs
2019-05-03 17:08:09 +02:00
Fabien Potencier ababe1a430 simplified code 2019-05-03 15:44:36 +02:00
Fabien Potencier df9c40ad53 fixed CS 2019-05-03 15:28:57 +02:00
Fabien Potencier a795acd1da bumped version to 1.41 2019-05-03 10:32:27 +02:00
Fabien Potencier 6196fe5b40 fixed partial output leak when a PHP fatal error occurs 2019-05-03 08:42:27 +02:00
Fabien Potencier d3acd0bede fixed markup in docs 2019-05-03 05:45:17 +02:00
Fabien Potencier ed083c8a93 fixed Drupal script 2019-05-01 10:58:08 +02:00
Fabien Potencier 364f4cb024 feature #2993 Add tests to avoid regressions (via Drupal) (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Add tests to avoid regressions (via Drupal)

Commits
-------

9c313e3c added Drupal in the CI process
2019-05-01 10:41:10 +02:00
Fabien Potencier 9c313e3c2d added Drupal in the CI process 2019-05-01 10:06:25 +02:00
Fabien Potencier 7395b7ab95 feature #2985 Optimize context access on PHP 7.4 (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Optimize context access on PHP 7.4

Commits
-------

5b5f5659 optimized context access on PHP 7.4
2019-04-30 14:47:37 +02:00
Fabien Potencier bd7ca26497 removed wrong link in docs 2019-04-30 14:26:21 +02:00
Fabien Potencier 61eb901f16 fixed doc markup 2019-04-30 14:23:18 +02:00
Fabien Potencier bd5c53f1b2 fixed doc indexes 2019-04-30 14:16:53 +02:00
Fabien Potencier fc87a0a2c1 minor #2992 add column filter to index (pableu)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #2992).

Discussion
----------

add column filter to index

Commits
-------

e804338b add column filter to index
2019-04-30 14:14:24 +02:00
Pablo Schläpfer e804338b2c add column filter to index 2019-04-30 14:14:19 +02:00
Fabien Potencier 5b5f5659a2 optimized context access on PHP 7.4 2019-04-29 19:20:52 +02:00
Fabien Potencier d7eaeead8b bumped version to 1.40.2-DEV 2019-04-29 16:13:05 +02:00
Fabien Potencier 35889516bb prepared the 1.40.1 release v1.40.1 2019-04-29 16:12:28 +02:00
Fabien Potencier 732c489693 bug #2991 Fix regression in NodeTraverser (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix regression in NodeTraverser

Commits
-------

e89800de fixed regression in NodeTraverser
2019-04-29 15:49:19 +02:00
Fabien Potencier e89800dea6 fixed regression in NodeTraverser 2019-04-29 15:28:41 +02:00
Fabien Potencier b10a8fad8f bumped version to 1.40.1-DEV 2019-04-28 07:56:01 +01:00
Fabien Potencier 2ba4eaf6b0 prepared the 1.40.0 release v1.40.0 2019-04-28 07:54:53 +01:00
Fabien Potencier c35f48fdc0 minor #2986 Tweak the docs (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Tweak the docs

Commits
-------

5ac239ca tweaked the doc
2019-04-27 16:53:47 +01:00
Fabien Potencier 5ac239ca4f tweaked the doc 2019-04-27 15:54:47 +01:00
Fabien Potencier bf3781c9c1 feature #2981 Allow Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning) (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Allow Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning)

Commits
-------

f297b52f allowed Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning)
2019-04-26 11:38:36 +02:00
Fabien Potencier 08f57ca7a8 minor #2983 Add Parser typehint (ruudk)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #2983).

Discussion
----------

Add Parser typehint

This makes it easier to work with.

Commits
-------

9ead7df1 Add Parser typehint
2019-04-26 11:36:53 +02:00
Ruud Kamphuis 9ead7df1c0 Add Parser typehint 2019-04-26 11:36:48 +02:00
Fabien Potencier 6d6fe61629 minor #2982 Tweak doc markup (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Tweak doc markup

Commits
-------

fa836ddf tweaked doc markup
2019-04-25 12:16:24 +02:00
Fabien Potencier fa836ddfea tweaked doc markup 2019-04-25 12:14:46 +02:00
Fabien Potencier 6578035968 minor #2980 Tweak escape docs (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Tweak escape docs

Commits
-------

fb68f487 tweaked escape docs
2019-04-25 12:13:47 +02:00
Fabien Potencier fb68f487ce tweaked escape docs 2019-04-25 12:07:29 +02:00
Fabien Potencier f297b52f36 allowed Twig\NodeVisitor\NodeVisitorInterface::leaveNode() to return "null" instead of "false" (same meaning) 2019-04-25 10:43:59 +02:00
Fabien Potencier eed9c5fb87 removed obsolete comments 2019-04-25 07:57:20 +02:00
Fabien Potencier 321c9a855c fixed typo 2019-04-24 19:36:33 +02:00
Fabien Potencier 31a28fcb8f fixed docs 2019-04-24 19:36:11 +02:00
Fabien Potencier 5adb9ea867 removed die() 2019-04-24 19:34:40 +02:00
Fabien Potencier a0bcf59d66 feature #2977 Add the apply tag (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Add the apply tag

The `apply` tag replaces the `filter` tag to be able to fix #2929 without a BC break. The two tags do the same thing except that the `apply` tag does not create a new scope.

Commits
-------

619bc12f added the apply tag
2019-04-24 19:32:53 +02:00
Fabien Potencier 619bc12f62 added the apply tag 2019-04-24 17:20:47 +02:00
Fabien Potencier f497913961 fixed CS 2019-04-24 17:00:49 +02:00
Fabien Potencier bf6e73d9be minor #2976 Typo in TemplateWrapper::getTemplateName() method name (yceruto)
This PR was merged into the 1.x branch.

Discussion
----------

Typo in TemplateWrapper::getTemplateName() method name

Commits
-------

c9a1cb02 Update TemplateWrapper.php
2019-04-24 16:13:39 +02:00
Yonel Ceruto c9a1cb02d5 Update TemplateWrapper.php 2019-04-24 09:50:53 -04:00
Fabien Potencier a6ec023c09 bumped version to 1.40 2019-04-24 15:19:52 +02:00
Fabien Potencier fb6540ce8f removed obsolete PHPUnit config 2019-04-24 15:10:56 +02:00
Fabien Potencier 9bd6939f8e feature #2973 Allow Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning) (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Allow Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning)

That will allow to type hint properly in Twig 3.0.

Commits
-------

5138cfd2 allowed Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning)
2019-04-24 14:57:38 +02:00
Fabien Potencier 5138cfd2d5 allowed Twig\Loader\FilesystemLoader::findTemplate() to return "null" instead of "false" (same meaning) 2019-04-24 12:08:10 +02:00
Fabien Potencier 7d3f1bef48 minor #2957 Fix Parser contract for some implementations (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix Parser contract for some implementations

Commits
-------

fe6df56e fixed Parser contract for some implementations
2019-04-23 16:26:38 +02:00
Fabien Potencier fe6df56e91 fixed Parser contract for some implementations 2019-04-23 16:21:33 +02:00
Fabien Potencier df68cb0c28 refactored some test to ease changing them 2019-04-23 12:10:47 +02:00