Bug PHP 8.1: ErrorException: [E_DEPRECATED] strlen(): Passing null to parameter #1 ($string)

There is a bug in this version
M

Moshe1010

Guest
ErrorException: [E_DEPRECATED] strlen(): Passing null to parameter #1 ($string) of type string is deprecated
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php:49

Stack trace​

#0 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ContentEncoder/Base64ContentEncoder.php(49): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/user/de...', 49)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(555)...

Read more

Continue reading...