From a065cdb73a1a6e09bb3a610bff6df39602fca392 Mon Sep 17 00:00:00 2001 From: Andrew Waite Date: Thu, 10 Sep 2015 11:00:57 +0100 Subject: [PATCH] Context is optional --- src/TemplatedEmailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TemplatedEmailer.php b/src/TemplatedEmailer.php index 4d96cbc..4498c6a 100644 --- a/src/TemplatedEmailer.php +++ b/src/TemplatedEmailer.php @@ -63,7 +63,7 @@ public function setSender($address, $name = null) * @param string $templatePath * @param mixed $context */ - public function send($recipient, $subject, $templatePath, $context) + public function send($recipient, $subject, $templatePath, $context = []) { if (!isset($this->sender)) { throw new RuntimeException("Cannot send message [{$subject}] until sender has been set using setSender().");