Skip to content

Commit

Permalink
Change Twig_TemplateWrapper to Twig\TemplateWrapper
Browse files Browse the repository at this point in the history
Ref: https://twig.symfony.com/doc/2.x/deprecated.html
Requires: twig/twig >=2.7

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Apr 28, 2020
1 parent 53a1e5c commit 89220e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/classes/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use Twig_Error_Loader;
use Twig_Error_Runtime;
use Twig_Error_Syntax;
use Twig_TemplateWrapper;
use Twig\TemplateWrapper;
use function sprintf;
use function trigger_error;
use const E_USER_WARNING;
Expand Down Expand Up @@ -95,7 +95,7 @@ public function __construct()
* @throws RuntimeError
* @throws SyntaxError
*/
public function load(string $templateName): Twig_TemplateWrapper
public function load(string $templateName): TemplateWrapper
{
try {
$template = static::$twig->load($templateName . '.twig');
Expand Down

0 comments on commit 89220e0

Please sign in to comment.