tweaked docs

This commit is contained in:
Fabien Potencier
2019-03-05 20:08:13 +01:00
parent 5a2c4f2220
commit f16405f797
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
* 1.38.0 (2019-XX-XX)
* added max value to the "random" function
* made namespace classes the default classes (PSR-0 ones are aliases now)
* removed duplicated directory separator in FilesystemLoader
* added Twig\Loader\ChainLoader::getLoaders()
+4
View File
@@ -7,6 +7,9 @@
.. versionadded:: 1.6
String and integer handling was added in Twig 1.6.
.. versionadded:: 1.38
The "max" argument was added in Twig 1.38.
The ``random`` function returns a random value depending on the supplied
parameter type:
@@ -28,5 +31,6 @@ Arguments
---------
* ``values``: The values
* ``max``: The max value when values is an integer
.. _`mt_rand`: https://secure.php.net/mt_rand