1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

[ticket/16382] Update Twig_Environment

PHPBB3-16382
This commit is contained in:
mrgoldy
2020-02-27 16:55:54 +01:00
parent 8a040f3fbc
commit 75c25556aa
7 changed files with 13 additions and 12 deletions

View File

@@ -134,7 +134,7 @@ class extension extends \Twig_Extension
/**
* Grabs a subset of a loop
*
* @param \Twig_Environment $env A Twig_Environment instance
* @param \Twig\Environment $env A Twig\Environment instance
* @param mixed $item A variable
* @param integer $start Start of the subset
* @param integer $end End of the subset
@@ -142,7 +142,7 @@ class extension extends \Twig_Extension
*
* @return mixed The sliced variable
*/
public function loop_subset(\Twig_Environment $env, $item, $start, $end = null, $preserveKeys = false)
public function loop_subset(\Twig\Environment $env, $item, $start, $end = null, $preserveKeys = false)
{
// We do almost the same thing as Twig's slice (array_slice), except when $end is positive
if ($end >= 1)