Fix getTranslationNodeVisitor() return type
This commit is contained in:
parent
0ab5eeddf9
commit
c1344257f1
@ -16,6 +16,11 @@ TwigBundle
|
||||
|
||||
* Deprecated the public `twig` service to private.
|
||||
|
||||
TwigBridge
|
||||
----------
|
||||
|
||||
* Changed 2nd argument type of `TranslationExtension::__construct()` to `TranslationNodeVisitor`
|
||||
|
||||
Validator
|
||||
---------
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user