Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
In PHP 8.1 a "mixed" return type was added to the "JsonSerializable::jsonSerialize()" method.
This triggers a deprecation warning for generated PHP classes:
Return type of TestClass::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ...
Attachments
Issue Links
- links to