From 7d641d61f65d53b2eafdb0ee907edd5f2865b34f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 14 Jun 2010 13:18:40 +0200 Subject: [PATCH] fixed type hinting for Twig_Environment::addFilter() method --- CHANGELOG | 1 + lib/Twig/Environment.php | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 6b77909..36d12d2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ * 0.9.8 + * fixed type hinting for Twig_Environment::addFilter() method * 0.9.7 (2010-06-12) diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 45385c1..f8244cd 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -383,7 +383,7 @@ class Twig_Environment return $this->visitors; } - public function addFilter($name, Twig_NodeFilter $filter) + public function addFilter($name, Twig_FilterInterface $filter) { if (null === $this->filters) { $this->getFilters(); -- 1.7.2.5