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

Remove BC magic getter from SwiftMailerHandler

This commit is contained in:
Jordi Boggiano
2015-10-09 20:45:02 +01:00
parent ad37b7b2d1
commit 45323b9102

View File

@@ -71,18 +71,4 @@ class SwiftMailerHandler extends MailHandler
return $message;
}
/**
* BC getter, to be removed in 2.0
*/
public function __get($name)
{
if ($name === 'message') {
trigger_error('SwiftMailerHandler->message is deprecated, use ->buildMessage() instead to retrieve the message', E_USER_DEPRECATED);
return $this->buildMessage(null, array());
}
throw new \InvalidArgumentException('Invalid property '.$name);
}
}