Skip to content

Commit

Permalink
Use Twig\Environment instead of Twig_Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hmonglee authored and damonsson committed Jan 27, 2023
1 parent 3fd8668 commit f9b3583
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Twig/Parser/ContentParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@

namespace BitBag\SyliusCmsPlugin\Twig\Parser;

use Twig\Environment;
use Webmozart\Assert\Assert;

final class ContentParser implements ContentParserInterface
{
/** @var \Twig_Environment */
/** @var Environment */
private $twigEnvironment;

/** @var array */
private $enabledFunctions;

public function __construct(\Twig_Environment $twigEnvironment, array $enabledFunctions)
public function __construct(Environment $twigEnvironment, array $enabledFunctions)
{
$this->twigEnvironment = $twigEnvironment;
$this->enabledFunctions = $enabledFunctions;
Expand Down

0 comments on commit f9b3583

Please sign in to comment.