8000 minor #51581 [Mailer] bug - reset $code variable each iteration for p… · symfony/symfony@95153c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95153c4

Browse files
committed
minor #51581 [Mailer] bug - reset $code variable each iteration for prevent wrong exception codes (kgnblg)
This PR was merged into the 6.3 branch. Discussion ---------- [Mailer] bug - reset $code variable each iteration for prevent wrong exception codes | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | --- | License | MIT | Doc PR | --- Follow up PR of #51568 to reset `$code` variable for each iteration to have correct `TransportException` code. (Note: This bug does not exist in version 5.4) Commits ------- ce4bc8c [mailer] reset $code variable each iteration for prevent wrong codes to be used
2 parents 29f427f + ce4bc8c commit 95153c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Mailer/Transport/Smtp/EsmtpTransport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ private function handleAuth(array $modes): void
193193
continue;
194194
}
195195

196+
$code = null;
196197
$authNames[] = $authenticator->getAuthKeyword();
197198
try {
198199
$authenticator->authenticate($this);

0 commit comments

Comments
 (0)
0