Skip to content

Commit

Permalink
Update Email.php
Browse files Browse the repository at this point in the history
  • Loading branch information
obinoob committed Sep 5, 2017
1 parent 4bc658d commit 5e4ee87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mailer/Email.php
Expand Up @@ -2092,12 +2092,12 @@ protected function _logDelivery($contents)
/**
* Converts given value to string
*
* @param string|array $value
* @param string|array $value The value to convert
* @return string
*/
protected function flatten($value)
{
return is_array($value) ? implode(';', $value) : $value;
return is_array($value) ? implode(';', $value) : (string)$value;
}

/**
Expand Down

0 comments on commit 5e4ee87

Please sign in to comment.