Closed
Description
Symfony version(s) affected: 4.4
Description
Docs indicate Mailer::send() returns the sent message but looking at the code suggests it actually returns nothing. Not sure if this a bug in the code, docs bug, or I'm wrong.
How to reproduce
n/a
Possible Solution
Adjust the docs to reflect the void return of send(). Or change the send() return type to ?SentMessage
and return the results of Transport::send() or null if a queue is in use.
Additional context
I suspect the docs are just lagging behind an interface change in Mailer that was necessary to support use of message queues since the sent message isn't available to return.