Compatibility error with Deprecated function: Return type of WsdlToPhp\PackageBase\AbstractStructBase::jsonSerialize()

Created on 28 October 2023, over 1 year ago
Updated 11 March 2024, about 1 year ago

Problem/Motivation

Deprecated function: Return type of WsdlToPhp\PackageBase\AbstractStructBase::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 5 of /var/www/html/vendor/wsdltophp/packagebase/src/AbstractStructBase.php).
include('/var/www/html/vendor/wsdltophp/packagebase/src/AbstractStructBase.php') (Line: 576)
Composer\Autoload\{closure}('/var/www/html/vendor/composer/../wsdltophp/packagebase/src/AbstractStructBase.php') (Line: 427)
Composer\Autoload\ClassLoader->loadClass('WsdlToPhp\PackageBase\AbstractStructBase') (Line: 13)
include('/var/www/html/vendor/nicholascreativemedia/fedexphp/src/Structs/VersionId.php') (Line: 576)
Composer\Autoload\{closure}('/var/www/html/vendor/composer/../nicholascreativemedia/fedexphp/src/Structs/VersionId.php') (Line: 427)
Composer\Autoload\ClassLoader->loadClass('NicholasCreativeMedia\FedExPHP\Structs\VersionId') (Line: 31)
NicholasCreativeMedia\FedExPHP\Services\RateService->__construct(Array, 1, 'live') (Line: 97)

Steps to reproduce

I believe this is using PHP 8.1, and happens with any instantiation NicholasCreativeMedia\FedExPHP\Services\RateService
There might be more involved, I could debug further if there would be some more maintenance on this module πŸ’¬ Is this module still maintained? Needs review

Proposed resolution

It appears that there is a dependency on FedExPHP which has a dependency on PackageBase

The PackageBase library seems to have some more recent updates, so, there's probably a lot of work needed to make sure that FedExPHP can use the most recent version.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France asherry

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024