- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PHP SDK Fatal Error void must be compatible with
Hi,
I've just cloned the php sdk from git and run 'composer update', but when I try the following command:
php PaymentTransactions/charge-credit-card.php
I get the folling error message:
PHP Fatal error: Declaration of JMS\Serializer\JsonDeserializationVisitor::startVisitingObject(JMS\Serializer\Metadata\ClassMetadata $metadata, JMS\Serializer\object $object, array $type): void must be compatible with JMS\Serializer\Visitor\DeserializationVisitorInterface::startVisitingObject(JMS\Serializer\Metadata\ClassMetadata $metadata, JMS\Serializer\Visitor\object $data, array $type): void in authorize/vendor/jms/serializer/src/JsonDeserializationVisitor.php on line 14
php version is: 7.1.23
Any ideas ?
Thanks,
John
โ01-04-2019 06:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Quick update, I've updated my version of PHP to 7.2 and it seems to have resolved the issue.
Regards,
John
โ01-04-2019 07:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I update php version 7.1 to 7.2 and authorize .net version is 1.9.6 but I am facing the same issue. could anyone help.
Thanks
Gulfam
โ09-02-2019 03:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Has your sdk ever worked? Or is this your first time installing it? I donโt think PHP 7 is required for 1.9.6. Id have to look it up but I donโt think thatโs your problem.
โ09-04-2019 05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
My problem has been resolved by upgrading authorizenet version to 2.0
Thanks
Gulfam
โ09-05-2019 10:54 AM