Skip to content

Commit e03e645

Browse files
committed
Split lines for deprecation warnings
1 parent 183cc29 commit e03e645

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Net/SMTP.php

+8-4
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,8 @@ public function setAuthMethod($name, $callback, $prepend = true)
781781
*/
782782
protected function authDigestMD5($uid, $pwd, $authz = '')
783783
{
784-
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method DIGEST-MD5 is no longer secure and should be avoided.', E_USER_DEPRECATED);
784+
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method DIGEST-MD5' .
785+
' is no longer secure and should be avoided.', E_USER_DEPRECATED);
785786

786787
if (PEAR::isError($error = $this->put('AUTH', 'DIGEST-MD5'))) {
787788
return $error;
@@ -836,7 +837,8 @@ protected function authDigestMD5($uid, $pwd, $authz = '')
836837
*/
837838
protected function authCRAMMD5($uid, $pwd, $authz = '')
838839
{
839-
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method CRAM-MD5 is no longer secure and should be avoided.', E_USER_DEPRECATED);
840+
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method CRAM-MD5' .
841+
' is no longer secure and should be avoided.', E_USER_DEPRECATED);
840842

841843
if (PEAR::isError($error = $this->put('AUTH', 'CRAM-MD5'))) {
842844
return $error;
@@ -879,7 +881,8 @@ protected function authCRAMMD5($uid, $pwd, $authz = '')
879881
*/
880882
protected function authLogin($uid, $pwd, $authz = '')
881883
{
882-
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method LOGIN is no longer secure and should be avoided.', E_USER_DEPRECATED);
884+
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method LOGIN' .
885+
' is no longer secure and should be avoided.', E_USER_DEPRECATED);
883886

884887
if (PEAR::isError($error = $this->put('AUTH', 'LOGIN'))) {
885888
return $error;
@@ -927,7 +930,8 @@ protected function authLogin($uid, $pwd, $authz = '')
927930
*/
928931
protected function authPlain($uid, $pwd, $authz = '')
929932
{
930-
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method PLAIN is no longer secure and should be avoided.', E_USER_DEPRECATED);
933+
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method PLAIN' .
934+
' is no longer secure and should be avoided.', E_USER_DEPRECATED);
931935

932936
if (PEAR::isError($error = $this->put('AUTH', 'PLAIN'))) {
933937
return $error;

0 commit comments

Comments
 (0)