diff --git a/phpBB/phpbb/feed/controller/feed.php b/phpBB/phpbb/feed/controller/feed.php index 7826d19042..ff18cc0b39 100644 --- a/phpBB/phpbb/feed/controller/feed.php +++ b/phpBB/phpbb/feed/controller/feed.php @@ -16,7 +16,7 @@ namespace phpbb\feed\controller; use phpbb\auth\auth; use phpbb\config\config; use phpbb\db\driver\driver_interface; -use \phpbb\event\dispatcher_interface; +use phpbb\event\dispatcher_interface; use phpbb\exception\http_exception; use phpbb\feed\feed_interface; use phpbb\feed\exception\feed_unavailable_exception; @@ -28,11 +28,12 @@ use phpbb\user; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; +use Twig\Environment; class feed { /** - * @var \Twig_Environment + * @var Environment */ protected $template; @@ -89,7 +90,7 @@ class feed /** * Constructor * - * @param \Twig_Environment $twig + * @param Environment $twig * @param symfony_request $request * @param controller_helper $controller_helper * @param config $config @@ -101,7 +102,7 @@ class feed * @param dispatcher_interface $phpbb_dispatcher * @param string $php_ext */ - public function __construct(\Twig_Environment $twig, symfony_request $request, controller_helper $controller_helper, config $config, driver_interface $db, ContainerInterface $container, feed_helper $feed_helper, user $user, auth $auth, dispatcher_interface $phpbb_dispatcher, $php_ext) + public function __construct(Environment $twig, symfony_request $request, controller_helper $controller_helper, config $config, driver_interface $db, ContainerInterface $container, feed_helper $feed_helper, user $user, auth $auth, dispatcher_interface $phpbb_dispatcher, $php_ext) { $this->request = $request; $this->controller_helper = $controller_helper; diff --git a/phpBB/phpbb/template/twig/environment.php b/phpBB/phpbb/template/twig/environment.php index 0b038ac612..bbf1142939 100644 --- a/phpBB/phpbb/template/twig/environment.php +++ b/phpBB/phpbb/template/twig/environment.php @@ -15,7 +15,7 @@ namespace phpbb\template\twig; use phpbb\template\assets_bag; -class environment extends \Twig_Environment +class environment extends \Twig\Environment { /** @var \phpbb\config\config */ protected $phpbb_config; @@ -169,7 +169,7 @@ class environment extends \Twig_Environment * Set the namespace look up order to load templates from * * @param array $namespace - * @return \Twig_Environment + * @return \Twig\Environment */ public function setNamespaceLookUpOrder($namespace) { diff --git a/phpBB/phpbb/template/twig/extension.php b/phpBB/phpbb/template/twig/extension.php index 1131a7f3aa..5e2d2a8147 100644 --- a/phpBB/phpbb/template/twig/extension.php +++ b/phpBB/phpbb/template/twig/extension.php @@ -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) diff --git a/phpBB/phpbb/template/twig/node/event.php b/phpBB/phpbb/template/twig/node/event.php index cff29afef0..97116077af 100644 --- a/phpBB/phpbb/template/twig/node/event.php +++ b/phpBB/phpbb/template/twig/node/event.php @@ -21,7 +21,7 @@ class event extends \Twig\Node\Node */ protected $listener_directory = 'event/'; - /** @var \Twig_Environment */ + /** @var \Twig\Environment */ protected $environment; public function __construct(\Twig\Node\Expression\AbstractExpression $expr, \phpbb\template\twig\environment $environment, $lineno, $tag = null) diff --git a/phpBB/phpbb/template/twig/node/includephp.php b/phpBB/phpbb/template/twig/node/includephp.php index 0011f67e37..83625f3c63 100644 --- a/phpBB/phpbb/template/twig/node/includephp.php +++ b/phpBB/phpbb/template/twig/node/includephp.php @@ -16,7 +16,7 @@ namespace phpbb\template\twig\node; class includephp extends \Twig\Node\Node { - /** @var \Twig_Environment */ + /** @var \Twig\Environment */ protected $environment; public function __construct(\Twig\Node\Expression\AbstractExpression $expr, \phpbb\template\twig\environment $environment, $lineno, $ignoreMissing = false, $tag = null) diff --git a/phpBB/phpbb/template/twig/node/php.php b/phpBB/phpbb/template/twig/node/php.php index 46c1dde5d8..2823b11150 100644 --- a/phpBB/phpbb/template/twig/node/php.php +++ b/phpBB/phpbb/template/twig/node/php.php @@ -15,7 +15,7 @@ namespace phpbb\template\twig\node; class php extends \Twig\Node\Node { - /** @var \Twig_Environment */ + /** @var \Twig\Environment */ protected $environment; public function __construct(\Twig\Node\TextNode $text, \phpbb\template\twig\environment $environment, $lineno, $tag = null) diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php index f322778eda..af77335b9d 100644 --- a/phpBB/phpbb/template/twig/twig.php +++ b/phpBB/phpbb/template/twig/twig.php @@ -69,7 +69,7 @@ class twig extends \phpbb\template\base /** * Twig Environment * - * @var \Twig_Environment + * @var \Twig\Environment */ protected $twig;