Skip to content

Commit

Permalink
Fixing Twig 1.x and PHP 7.0 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Oct 6, 2017
1 parent 8627661 commit 032f56a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TwigMailExtension.php
Expand Up @@ -12,7 +12,7 @@ class TwigMailExtension extends \Twig_Extension
*/
private $messages = [];

public function pushMessage(Swift_Message $message): void
public function pushMessage(Swift_Message $message)
{
$this->messages[] = $message;
}
Expand All @@ -35,7 +35,7 @@ private function getMessage(): Swift_Message
public function getFunctions()
{
return [
new \Twig_Function('embedImage', [$this, 'embedImage']),
new \Twig_SimpleFunction('embedImage', [$this, 'embedImage']),
];
}

Expand Down

0 comments on commit 032f56a

Please sign in to comment.