-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Api/Normalizer/JaneObjectNormalizer.php is out of sync with Symfony\Component\Serializer\Normalizer\DenormalizerInterface #31
Comments
Error Messages PHP Fatal error: Declaration of ShipStream\Ups\Api\Normalizer\JaneObjectNormalizer::denormalize($data, $type, $format = null, array $context = []) must be compatible with Symfony\Component\Serializer\Normalizer\DenormalizerInterface::denormalize(mixed $data, string $type, ?string $format = null, array $context = []): mixed in /Users/jeff.bickart/Sites/claimspay4/App/custom/vendor/shipstream/ups-rest-php-sdk/src/Api/Normalizer/JaneObjectNormalizer.php on line 87 PHP Fatal error: Declaration of ShipStream\Ups\Api\Normalizer\JaneObjectNormalizer::normalize($object, $format = null, array $context = []) must be compatible with Symfony\Component\Serializer\Normalizer\NormalizerInterface::normalize(mixed $object, ?string $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null in /var/www/html/claimspay4_onebase_uat/custom/vendor/shipstream/ups-rest-php-sdk/src/Api/Normalizer/JaneObjectNormalizer.php on line 79 |
The generated code appears to generate the correct functions if you have a newer version of "symfony/http-kernel" . Our version is "symfony/http-kernel" : "v5.4.25", |
The main problem is that implementation is using the http kernel to determine whether typehint should be supported or not..
shouldn't it be better to use PHP_(MAJOR|MINOR)_VERSION constants in the implementation? |
@bickart Which version of PHP and the SDK are you using?
@szabobgabor That is because the |
@elidrissidev at the current moment our server is running PHP Version 8.2.x. Specifically PHP Version 8.2.12. We will be migrating to PHP 8.3.x in the next quarter or so. "shipstream/ups-rest-php-sdk": 2.3.1 |
@bickart I think the solution here would be to add |
We can not change the version of http-kernel. It's used by another library in our application |
Not http-kernel, |
@bickart Did my above comment solve this issue for you? |
@elidrissidev I will have to discuss this with our developer. |
Multiple functions within JaneObjectNormalizer are out of sync.
denormalize() as well as denormalize() are defined in multiple classes within this php file. All functions need to be updated to work correctly.
The text was updated successfully, but these errors were encountered: