jsonSerialize()

Created on 7 November 2022, about 2 years ago
Updated 25 January 2023, almost 2 years ago

Problem/Motivation

SendGrid can send out email, but there are error messages on function jsonSerialize

Steps to reproduce

Module installed on Drupal 9.
In SendGrid module, do "SendGrid email test".
The email is sent out successfully, but there are several error messages related to function jsonSerialize() which is used in several places. For example,
Deprecated function: Return type of SendGrid\Mail\SandBoxMode::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include()

Similar errors on SendGrid\Mail\OpenTracking::jsonSerialize(), SendGrid\Mail\ClickTracking::jsonSerialize() etc.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024