Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Laravel version 8.64.0, PHP version 8.1.0, strtolower(): Passing null to parameter #1 ($string) of type string is deprecated #886

@Salem-Matloob-Al-Twami

Description

@Salem-Matloob-Al-Twami

strtolowernullerror
To my humbling understanding,

strtolower(): Passing null to parameter #1 ($string) of type string is deprecated.
This issue is there because we create an object of Swift_SmtpTransport with

$transport = new SmtpTransport(
$config['host'],
$config['port']
);

on MailManage.php

and we on the constructor of Swift_SmtpTransport
public function __construct($host = 'localhost', $port = 25, $encryption = null)
hence, $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?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions