Salve, salve, blz??
Erro:
<b>Deprecated</b>: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in <b>D:\lgtk_dev\php\www\gti\vendor\phpmailer\phpmailer\src\PHPMailer.php</b>on line<b>1079</b>
Correção:
Antes: $name = trim(preg_replace('/[\r\n]+/', '', $name)): //Strip breaks and trim
Depois: $name = ($name ? trim(preg_replace('/[\r\n]+/', '', $name)): ''); //Strip breaks and trim
Este erro aconteceu nas versões:
PHP: php-8.1.9
phpMailer: "tinymce/tinymce": "^5.10"
Gostou? Compartilhe com seus amigos e deixe um comentário! 😎
Um abraço, e até a próxima