Fix getTranslationNodeVisitor() return type

This commit is contained in:
dbrekelmans 2020-07-28 20:54:11 +02:00
parent 0ab5eeddf9
commit c1344257f1
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,11 @@ TwigBundle
* Deprecated the public `twig` service to private.
TwigBridge
----------
* Changed 2nd argument type of `TranslationExtension::__construct()` to `TranslationNodeVisitor`
Validator
---------

View File

@ -18,7 +18,6 @@ use Symfony\Bridge\Twig\TokenParser\TransTokenParser;
use Symfony\Contracts\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorTrait;
use Twig\Extension\AbstractExtension;
use Twig\NodeVisitor\NodeVisitorInterface;
use Twig\TwigFilter;
// Help opcache.preload discover always-needed symbols
@ -34,7 +33,7 @@ final class TranslationExtension extends AbstractExtension
private $translator;
private $translationNodeVisitor;
public function __construct(TranslatorInterface $translator = null, NodeVisitorInterface $translationNodeVisitor = null)
public function __construct(TranslatorInterface $translator = null, TranslationNodeVisitor $translationNodeVisitor = null)
{
$this->translator = $translator;
$this->translationNodeVisitor = $translationNodeVisitor;