braintree_php icon indicating copy to clipboard operation
braintree_php copied to clipboard

Braintree\Base::jsonSerialize()

Open MarkBCG opened this issue 4 years ago • 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 avatar Dec 04 '21 19:12 MarkBCG

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

hollabaq86 avatar Apr 26 '22 15:04 hollabaq86

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.

hollabaq86 avatar Apr 28 '22 14:04 hollabaq86

for internal tracking, ticket 1401

hollabaq86 avatar Oct 03 '22 22:10 hollabaq86

any ETA???

piegus avatar Apr 22 '24 13:04 piegus