1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-10 07:06:40 +02:00

Merge pull request #522 from elyobo/consistent-fluent-return-values

Return self from NativeMailerHandler::addHeader().
This commit is contained in:
Jordi Boggiano
2015-03-04 17:56:10 +00:00

View File

@@ -84,7 +84,7 @@ class NativeMailerHandler extends MailHandler
* Add headers to the message * Add headers to the message
* *
* @param string|array $headers Custom added headers * @param string|array $headers Custom added headers
* @return null * @return self
*/ */
public function addHeader($headers) public function addHeader($headers)
{ {
@@ -94,6 +94,8 @@ class NativeMailerHandler extends MailHandler
} }
$this->headers[] = $header; $this->headers[] = $header;
} }
return $this;
} }
/** /**