From 14341443dd48ec4b02fcc32cd935a921de8d537c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 18 Dec 2010 11:21:46 +0100 Subject: [PATCH] removed the 'items' filter, which has been deprecated a long time ago --- CHANGELOG | 6 +++++- lib/Twig/Extension/Core.php | 8 -------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c636ab0..5f1970f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,10 @@ * 1.0.0-BETA1 -... +Backward incompatibilities: + + * the items filter, which has been deprecated for quite a long time now, has been removed + +Changes: * 0.9.10 (2010-12-16) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 6bb7192..96b5192 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -70,7 +70,6 @@ class Twig_Extension_Core extends Twig_Extension // iteration and runtime 'default' => new Twig_Filter_Function('twig_default_filter'), 'keys' => new Twig_Filter_Function('twig_get_array_keys_filter'), - 'items' => new Twig_Filter_Function('twig_get_array_items_filter'), // escaping 'escape' => new Twig_Filter_Function('twig_escape_filter', array('needs_environment' => true, 'is_safe_callback' => 'twig_escape_filter_is_safe')), @@ -437,13 +436,6 @@ function twig_ensure_traversable($seq) } } -// only for backward compatibility -function twig_get_array_items_filter($array) -{ - // noop - return $array; -} - function twig_test_sameas($value, $test) { return $value === $test; -- 1.7.2.5