summaryrefslogtreecommitdiff
path: root/inc/lib/Twig/Function.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/lib/Twig/Function.php')
-rw-r--r--inc/lib/Twig/Function.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/inc/lib/Twig/Function.php b/inc/lib/Twig/Function.php
index b5ffb2b0..9dc16e90 100644
--- a/inc/lib/Twig/Function.php
+++ b/inc/lib/Twig/Function.php
@@ -3,18 +3,21 @@
/*
* This file is part of Twig.
*
- * (c) 2010 Fabien Potencier
+ * (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
+@trigger_error('The Twig_Function class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFunction instead.', E_USER_DEPRECATED);
+
/**
* Represents a template function.
*
* Use Twig_SimpleFunction instead.
*
* @author Fabien Potencier <fabien@symfony.com>
+ *
* @deprecated since 1.12 (to be removed in 2.0)
*/
abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCallableInterface
@@ -26,8 +29,8 @@ abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCal
{
$this->options = array_merge(array(
'needs_environment' => false,
- 'needs_context' => false,
- 'callable' => null,
+ 'needs_context' => false,
+ 'callable' => null,
), $options);
}