Skip to content

Commit

Permalink
change interface MessageFormatter format() expected output to array i…
Browse files Browse the repository at this point in the history
…nstead of string (json)
  • Loading branch information
vaidas-lungis committed Dec 9, 2015
1 parent 7683869 commit c8da970
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Contract/MessageFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface MessageFormatter
public function setMessage(Messageable $message);

/**
* @return string
* @return array
*/
public function format();
}
4 changes: 2 additions & 2 deletions src/Formatters/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getSource()


/**
* @return string
* @return array
*/
public function format()
{
Expand All @@ -49,7 +49,7 @@ public function format()
),
'vars' => $this->message->getExtras(),
);
return json_encode($out);
return $out;
}

}

0 comments on commit c8da970

Please sign in to comment.