SMTP Transport to provide the (final) Message-ID if available

by @drzraf

Some issues have been detected in this pull request

Issues that can be fixed by applying a patch

Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:

curl https://fabbot.io/patch/symfony/symfony/46326/60d0085575ed6eab47e5d7c5b8f8a64aa405e645/cs.diff | patch -p0
diff -ru src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php
--- src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php	2022-05-12 17:47:20.384666817 +0000
+++ src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php	2022-05-12 17:47:21.978700156 +0000
@@ -161,10 +161,10 @@
     {
         $regexps = [
             '/250 Ok (?P<id>[0-9a-f-]+)\r?$/mis',
-            '/250 Ok:? queued as (?P<id>[A-Z0-9]+)\r?$/mis'
+            '/250 Ok:? queued as (?P<id>[A-Z0-9]+)\r?$/mis',
         ];
 
-        if ($mtaResult === '') {
+        if ('' === $mtaResult) {
             return null;
         }
 

0
Common Typos

0
License Headers

0
Pull Request Contributor Headers

0
File Permissions

0
Merge Commits

0
Exception Messages Formatting

0
Usage of void in test files

0
Use ::class whenever possible

0
Deprecation Messages