sendgrid-php icon indicating copy to clipboard operation
sendgrid-php copied to clipboard

Compatibility issues with PHP 8.4

Open Whip opened this issue 8 months ago • 4 comments

Please fix the code related to this warning to be compatible with PHP 8.4

SendGrid\Mail\Mail::__construct(): Implicitly marking parameter $globalSubstitutions as nullable is deprecated, the explicit nullable type must be used instead in ../vendor/sendgrid/sendgrid/lib/mail/Mail.php on line 98

Whip avatar Apr 05 '25 06:04 Whip

Please fix this one as well: ERROR: Creation of dynamic property SendGrid\\Mail\\Mail::$attachements is deprecated on line 105

AdamDomafoldi avatar Apr 06 '25 14:04 AdamDomafoldi

https://github.com/sendgrid/sendgrid-php/pull/1119 fixed by this PR

dmnlk avatar Apr 07 '25 11:04 dmnlk

It is still not fixed: ERROR: Creation of dynamic property SendGrid\Mail\Mail::$attachements is deprecated on line 105

AdamDomafoldi avatar Apr 08 '25 14:04 AdamDomafoldi

The SendGrid library has already addressed this deprecation in older version. Updating to the latest version should resolve this issue along with other PHP 8.4 compatibility fixes. Did you try to update?

This should update: composer update sendgrid/sendgrid

BaranKeles avatar Apr 14 '25 17:04 BaranKeles