Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
strpos() Passing null to parameter #1 ($string) of type string is deprecated with PHP8.1 - phpMail plugin
Running a phpunit with mailing feature will throws this error under risky tests.
Comment | File | Size | Author |
---|---|---|---|
Screenshot 2022-08-04 at 4.10.36 PM.png | 211.45 KB | ankitv18 |
Issue fork drupal-3301770
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ankitv18 CreditAttribution: ankitv18 as a volunteer and at Acquia commentedComment #4
LendudeWe have this too when using the PHP internal webserver on our CI.
Not sure if just casting it to a string is the best way to handle this, shouldn't we just check if it is set before using it?
Comment #7
deepakkm CreditAttribution: deepakkm commentedComment #8
deepakkm CreditAttribution: deepakkm commentedThis patch is added in 10.0.0-rc2 version
Comment #10
idebr CreditAttribution: idebr at iO commentedThis issue was fixed in #3226117: Uncaught RfcComplianceException when email From name contains a comma. The fix is available from Drupal 9.5.4 forward, see https://www.drupal.org/project/drupal/releases/9.5.4