I’m having an issue with the Pipedrive API on my system after we did a PHP update to 8.2.
The calls are returning the following error:
Utils/CamelCaseHelper.php:41 - [Creation of dynamic property Pipedrive\Utils\JsonSerializer::$relatedObjects is deprecated]
Utils/CamelCaseHelper.php:41 - [Creation of dynamic property Pipedrive\Utils\JsonSerializer::$user is deprecated]
Utils/CamelCaseHelper.php:41 - [Creation of dynamic property Pipedrive\Utils\JsonSerializer::$6542479 is deprecated]
Utils/CamelCaseHelper.php:41 - [Creation of dynamic property Pipedrive\Utils\JsonSerializer::$activeFlag is deprecated]
Could anyone help on what the best way to fix this? Is there any API version that solves this problem?
Other erros :
Utils/JsonSerializer.php:19 - [Return type of Pipedrive\Utils\JsonSerializer::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice]
Utils/CamelCaseHelper.php:27 - [foreach() argument must be of type array|object, string given]