Reply
osa
Member
Posts: 2
Registered: ‎01-04-2019

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

 

 

Highlighted
osa
Member
Posts: 2
Registered: ‎01-04-2019

Re: PHP SDK Fatal Error void must be compatible with

Hi,

 

Quick update, I've updated my version of PHP to 7.2 and it seems to have resolved the issue.

 

Regards,

   John