braintree/braintree_php

Braintree\Base::jsonSerialize()

Opened this issue ยท 4 comments

General information

  • SDK/Library version: 6.5.0
  • Environment: Sandbox
  • Language, language version, and OS: PHP 8.1.0, Debian

Issue description

In the latest version of the library, this "Deprecated" notice is being reported.

Deprecated: Return type of Braintree\Base::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vendor/braintree/braintree_php/lib/Braintree/Base.php on line 82

๐Ÿ‘‹ @MarkBCG thanks for the report, don't have an ETA but we'll fix this up.

Sorry folks didn't have coffee when I commented earlier ๐Ÿ™ƒ , we added the #[\ReturnTypeWillChange] to temporarily suppress these warnings in version 6.5.1. But we haven't addressed the source of the deprecation warning. Going to leave this issue open until we've addressed the underlying source of the issue.

for internal tracking, ticket 1401

any ETA???