mailer icon indicating copy to clipboard operation
mailer copied to clipboard

Add phpdoc to MessageInterface::getHeaders(), consider not using null

Open samdark opened this issue 1 year ago • 2 comments

Currently, MessageInterface::getHeaders() doesn't have phpdoc. We should add it.

Also, it may return null which means "do not add headers". An empty array could be possibly used for the same purpose. Need to consider it.

samdark avatar Oct 20 '24 19:10 samdark

Also, it may return null which means "do not add headers". An empty array could be possibly used for the same purpose. Need to consider it.

null — headers don't set. Later, in mailer we can add default headers. [] — headers is set. Later, in mailer we don't add default headers.

vjik avatar Oct 22 '24 12:10 vjik

Alright. Then we need phpdoc only.

samdark avatar Oct 22 '24 17:10 samdark