Skip to content

Commit

Permalink
Merge branch 'main' into eiriksm-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm authored Jul 17, 2024
2 parents 47fcfbe + 94ea0ec commit 34c6156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"psr-4": {"eiriksm\\ViolinistMessages\\": "src"}
},
"require": {
"twig/twig": "^2"
"twig/twig": "^3"
},
"scripts": {
"phpstan": "phpstan analyse src tests",
Expand Down
6 changes: 3 additions & 3 deletions src/ViolinistMessages.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ViolinistMessages
{

/**
* @var \Twig_Environment
* @var \Twig\Environment
*/
private $twig;

Expand All @@ -15,8 +15,8 @@ class ViolinistMessages
*/
public function __construct()
{
$loader = new \Twig_Loader_Filesystem(__DIR__ . '/../templates');
$this->twig = new \Twig_Environment($loader);
$loader = new \Twig\Loader\FilesystemLoader(__DIR__ . '/../templates');
$this->twig = new \Twig\Environment($loader, []);
}

/**
Expand Down

0 comments on commit 34c6156

Please sign in to comment.