From a05da6dbbe8eb37262e6cc578948154859e60ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Wagner?= Date: Tue, 21 May 2019 12:53:40 +0200 Subject: [PATCH] Add information for when `filter` filter was added in 2.x branch The current "versionadded" info can be confusing to developers, if they assume 2.9 > 1.41 and don't know that 1.x and 2.x branches are still developed simultaneously. --- doc/filters/filter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/filters/filter.rst b/doc/filters/filter.rst index d1c18d9fd2..c421c586a5 100644 --- a/doc/filters/filter.rst +++ b/doc/filters/filter.rst @@ -2,7 +2,7 @@ ========= .. versionadded:: 1.41 - The ``filter`` filter was added in Twig 1.41. + The ``filter`` filter was added in Twig 1.41 and 2.10, if you're on 2.x. The ``filter`` filter filters elements of a sequence or a mapping using an arrow function. The arrow function receives the value of the sequence or mapping: