Open charliepfm opened 2 years ago
following. +1
Here are the specific lines/files with these errors:
Deprecated: Return type of SendGrid\Mail\Mail::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cloud-screen.com/src/vendor/sendgrid/sendgrid/lib/mail/Mail.php on line 1837
Deprecated: Return type of SendGrid\Mail\Personalization::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cloud-screen.com/src/vendor/sendgrid/sendgrid/lib/mail/Personalization.php on line 280
Deprecated: Return type of SendGrid\Mail\EmailAddress::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cloud-screen.com/src/vendor/sendgrid/sendgrid/lib/mail/EmailAddress.php on line 183
Deprecated: Return type of SendGrid\Mail\Subject::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cloud-screen.com/src/vendor/sendgrid/sendgrid/lib/mail/Subject.php on line 63
Deprecated: Return type of SendGrid\Mail\Content::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/cloud-screen.com/src/vendor/sendgrid/sendgrid/lib/mail/Content.php on line 106
It looks like #1066 should have fixed this (effective as of v7.11.1
), however, it does not work on my tests.
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
Summary
Heroku Platform with SendGrid provisioned. Emails have been going out fine for many months. Heroku pushed PHP v8.1 into all Dynos (instances) on Dec 10, 2021. A release of our application was published today (Dec 14) and now all attempts to send emails with the SendGrid API fail.
Steps to Reproduce
Code Snippet
Technical details:
sendgrid-php version: 7.11 (using composer.json -> require: {"sendgrid/sendgrid": "^7", .... php version: According to build log on Heroku deploy - version 8.1