Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d07e93b

Browse files
committed
Merge branch '6.2' into 6.3
* 6.2: Minor fix Update tags.rst
2 parents 20de4b7 + 149f9c0 commit d07e93b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

service_container/tags.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,7 @@ To begin with, change the ``TransportChain`` class::
401401

402402
public function getTransport($alias): ?\MailerTransport
403403
{
404-
if (array_key_exists($alias, $this->transports)) {
405-
return $this->transports[$alias];
406-
}
407-
408-
return null;
404+
return $this->transports[$alias] ?? null;
409405
}
410406
}
411407

0 commit comments

Comments
 (0)