Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea9e854

Browse files
authored
Update AbstractStream.php
1 parent3d49d0f commitea9e854

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎src/Symfony/Component/Mailer/Transport/Smtp/Stream/AbstractStream.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,7 @@ public function readLine(): string
8888
thrownewTransportException(\sprintf('Connection to "%s" has been closed unexpectedly.',$this->getReadConnectionDescription()));
8989
}
9090
if (false ===$line) {
91-
if ($this->getReadConnectionDescription() &&error_get_last()) {
92-
$error =$this->getReadConnectionDescription().error_get_last()['message'];
93-
}else {
94-
$error =$this->getReadConnectionDescription().error_get_last();
95-
}
96-
thrownewTransportException(\sprintf('Unable to read from connection to "%s":',$error));
91+
thrownewTransportException(\sprintf('Unable to read from connection to "%s":',$this->getReadConnectionDescription().error_get_last()['message'] ??''));
9792
}
9893
}
9994

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp