Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strtolower(): Passing null to parameter #1 ($string) of type string is deprecated #39686

Closed
Salem-Matloob-Al-Twami opened this issue Nov 18, 2021 · 1 comment

Comments

@Salem-Matloob-Al-Twami
Copy link

  • Laravel Version: 8.64.0
  • PHP Version: 8.1.0

Description:

strtolower(): Passing null to parameter #1 ($string) of type string is deprecated.

To my humbling understanding,

This issue is there because we create an object of Swift_SmtpTransport with $transport = new SmtpTransport( $config['host'], $config['port'] ); on MailManage.php and on the constructor of Swift_SmtpTransport public function __construct($host = 'localhost', $port = 25, $encryption = null) and the default value of $encryption would be null and we call $this->setEncryption($encryption); on it!!
I had to downgrade my PHP to 8.0 to avoid this issue.

Is there any other fix to it?

strtolowernullerror
Thank you

@driesvints
Copy link
Member

Please upgrade to Swiftmailer 6.3.0 which provides PHP 8.1 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants