mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 06:36:46 +02:00
Remove BC magic getter from SwiftMailerHandler
This commit is contained in:
@@ -71,18 +71,4 @@ class SwiftMailerHandler extends MailHandler
|
|||||||
|
|
||||||
return $message;
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user