This is a minor improvement to one of the exception messages. I was confused about this wording:
It is not possible to send a Message for an anonymous owner.
The "for" seems to indicate that the anonymous user is the sender of the message, not the recipient. This is reinforced by the fact that it checks $message->getOwner() - in many other entity types the owner is the same as the author, but this is not the case for messages.
I propose to change it so it is clear the message is attempted to be sent TO an anonymous user.
This is a minor improvement to one of the exception messages. I was confused about this wording:
The "for" seems to indicate that the anonymous user is the sender of the message, not the recipient. This is reinforced by the fact that it checks
$message->getOwner()
- in many other entity types the owner is the same as the author, but this is not the case for messages.I propose to change it so it is clear the message is attempted to be sent TO an anonymous user.