Can someone please help me with this error.
Type error: Argument 1 passed to Twig_Extensions_Extension_Date::__construct() must implement interface Symfony\Component\Translation\TranslatorInterface, instance of VojtaSvoboda\TwigExtensions\Classes\TimeDiffTranslator given, called in plugins\vojtasvoboda\twigextensions\
All I know from this message is that the getTimeFilter method in vojtasvoboda\twigextensions\Plugin.php is passing a parameter of type 'time_diff_traslator' but the required type is TranslatorInterface.
$translator = $this->app->make('time_diff_translator'); $timeExtension = new Twig_Extensions_Extension_Date($translator);
Below is the constructor for Twig_Extensions_Extension_Date and you can see its taking a parameter of type TranslatorInterface but Plugin.php is passing a different parameter. /** * @var TranslatorInterface */ private $translator;
public function __construct(TranslatorInterface $translator = null)
{
$this->translator = $translator;
}
/**
* {@inheritdoc}


