Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
check if dictionary defined
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Jul 22, 2017
1 parent 15b2536 commit c9734fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/TwigExtensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(Environment $twig, array $config)

protected function extendForTranslator() : void
{
$dictionary = $this->config['dictionary'];
$dictionary = $this->config['dictionary']?? [];
$filter = new \Twig_SimpleFunction(
'translate',
function (
Expand Down

0 comments on commit c9734fa

Please sign in to comment.