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

Commit

Permalink
Context is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
andywaite committed Sep 10, 2015
1 parent 143c48e commit a065cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TemplatedEmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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().");
Expand Down

0 comments on commit a065cdb

Please sign in to comment.