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:
Fabien Potencier
2016-12-23 09:06:20 +01:00
7 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -12,6 +12,8 @@
/**
* Represents a template filter.
*
* @final
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @see http://twig.sensiolabs.org/doc/templates.html#filters
+2
View File
@@ -12,6 +12,8 @@
/**
* Represents a template function.
*
* @final
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @see http://twig.sensiolabs.org/doc/templates.html#functions
+1 -1
View File
@@ -12,6 +12,6 @@
/**
* Empty class for Twig 1.x compatibility.
*/
class Twig_SimpleFilter extends Twig_Filter
final class Twig_SimpleFilter extends Twig_Filter
{
}
+1 -1
View File
@@ -12,6 +12,6 @@
/**
* Empty class for Twig 1.x compatibility.
*/
class Twig_SimpleFunction extends Twig_Function
final class Twig_SimpleFunction extends Twig_Function
{
}
+1 -1
View File
@@ -12,6 +12,6 @@
/**
* Empty class for Twig 1.x compatibility.
*/
class Twig_SimpleTest extends Twig_Test
final class Twig_SimpleTest extends Twig_Test
{
}
+2
View File
@@ -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