pipedrive / client-php

Pipedrive API client for PHP
MIT License
49 stars 57 forks source link

PHP 7.4: Return value of Pipedrive\Model\LeadResponse::jsonSerialize() must be an instance of Pipedrive\Model\mixed, i #93

Closed chrisTrung closed 5 months ago

chrisTrung commented 1 year ago

Return value of Pipedrive\Model\LeadResponse::jsonSerialize() must be an instance of Pipedrive\Model\mixed, instance of stdClass returned [/app/vendor/pipedrive/pipedrive/lib/Model/LeadResponse.php:793]

I get this error when trying to add a lead.

nd9600 commented 1 year ago

I think this is because the mixed pseudo-type is a PHP 8 feature, so even though composer.json says PHP 7.4 is supported, it isn't.

v4 of the library works fine on PHP 7.4, though.