kodus / mail

Simple, modern library of services for sending UTF-8 e-mail
38 stars 5 forks source link

Subject is deprecated #18

Closed boan-jfm closed 1 year ago

boan-jfm commented 1 year ago

From PHP version 8.1 it is deprecated to give null as subject parameter to preg_match: https://www.php.net/manual/en/function.preg-match.php

Image image https://tehplayground.com/66bDQ6thbWYTef4D

Code - parameter to methods are nullable https://github.com/kodus/mail/blob/e391f2b025552376119a4dd08d8b78a88c4281d0/src/Message.php#L325-L327

https://github.com/kodus/mail/blob/e391f2b025552376119a4dd08d8b78a88c4281d0/src/Message.php#L347-L349

thomasnordahl-dk commented 1 year ago

Duplicate of #15