My server (Ubuntu 20.4) updated and this impacted the version of PHP which was upgraded to 8.1 and since I got this error message when I try to send a mail from my Laravel application:
strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
My current PHP version is 8.1 and Laravel 8.64.0.
Need help!
I looked in this forum (https://github.com/laravel/framework/issues/39686), but the I’m a little bit confused because I don’t see any entry in my composer.json file and yet Swiftmailer is already part of the project.
3
Answers
I also faced the same problem I just upgraded my swiftmailer by this command
If swiftmailer is not in your composer.json, then how is it a part of your project? Kindly verify.
For getting the latest stable version you can simply use the command
Just FYI, this package is abandoned now and no more maintained. Instead you should use
symfony/mailer
.