We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b62f0 commit a2df575Copy full SHA for a2df575
service_container/tags.rst
@@ -405,11 +405,7 @@ To begin with, change the ``TransportChain`` class::
405
406
public function getTransport($alias): ?\MailerTransport
407
{
408
- if (array_key_exists($alias, $this->transports)) {
409
- return $this->transports[$alias];
410
- }
411
-
412
- return null;
+ return return $this->transports[$alias] ?? null;
413
}
414
415
0 commit comments