Merge branch '1.x' into 2.x

* 1.x:
  Fix PHP 8 support
This commit is contained in:
Fabien Potencier
2020-10-21 13:43:35 +02:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ function (with a step of ``1``, or ``-1`` if the start is greater than the end):
Arguments
---------
* ``low``: The first value of the sequence.
* ``high``: The highest possible value of the sequence.
* ``start``: The first value of the sequence.
* ``end``: The highest possible value of the sequence.
* ``step``: The increment between elements of the sequence.
.. _`range`: https://secure.php.net/range
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
"range" function
--TEMPLATE--
{{ range(low=0+1, high=10+0, step=2)|join(',') }}
{{ range(start=0+1, end=10+0, step=2)|join(',') }}
--DATA--
return []
--EXPECT--