-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated #2959
Comments
This is a little mysterious because all of |
This is fixed in the main branch and will be in the next release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
Using the latest PHP8.2 image and the latest version of phpmailer (6.8.1), I'm getting a deprecation warning pointing to https://github.com/PHPMailer/PHPMailer/blob/master/src/PHPMailer.php#L1574 (the
trim()
function gets a null value).Code to reproduce
Not sure what in the system is actually making the deprecation warning emit, but nevertheless the fact that the warning appears means the trimmed value can be
null
.Debug output
The text was updated successfully, but these errors were encountered: