mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 18:06:46 +00:00
Merge branch '1.x' into 2.x
* 1.x: added more final classes add a comma to clarify the meaning
This commit is contained in:
@@ -36,7 +36,7 @@ decrement for negative values):
|
||||
{# outputs 3, 2, 1, 0, #}
|
||||
|
||||
The Twig built-in ``..`` operator is just syntactic sugar for the ``range``
|
||||
function (with a step of ``1`` or ``-1`` if the start is greater than the end):
|
||||
function (with a step of ``1``, or ``-1`` if the start is greater than the end):
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
/**
|
||||
* Represents a template filter.
|
||||
*
|
||||
* @final
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @see http://twig.sensiolabs.org/doc/templates.html#filters
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
/**
|
||||
* Represents a template function.
|
||||
*
|
||||
* @final
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @see http://twig.sensiolabs.org/doc/templates.html#functions
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
/**
|
||||
* Empty class for Twig 1.x compatibility.
|
||||
*/
|
||||
class Twig_SimpleFilter extends Twig_Filter
|
||||
final class Twig_SimpleFilter extends Twig_Filter
|
||||
{
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
/**
|
||||
* Empty class for Twig 1.x compatibility.
|
||||
*/
|
||||
class Twig_SimpleFunction extends Twig_Function
|
||||
final class Twig_SimpleFunction extends Twig_Function
|
||||
{
|
||||
}
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
/**
|
||||
* Empty class for Twig 1.x compatibility.
|
||||
*/
|
||||
class Twig_SimpleTest extends Twig_Test
|
||||
final class Twig_SimpleTest extends Twig_Test
|
||||
{
|
||||
}
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
/**
|
||||
* Represents a template test.
|
||||
*
|
||||
* @final
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*
|
||||
* @see http://twig.sensiolabs.org/doc/templates.html#test-operator
|
||||
|
||||
Reference in New Issue
Block a user