Problems with the PHP upgrade to 8.2

PriscilaGoncalves
PriscilaGoncalves Member Posts: 2 VERIFIED MEMBER
Second Anniversary First Comment Photogenic

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?

Tagged:

Answers

  • PriscilaGoncalves
    PriscilaGoncalves Member Posts: 2 VERIFIED MEMBER
    Second Anniversary First Comment Photogenic

    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]

  • Manuel Oliveira
    Manuel Oliveira Admin Posts: 1,320 COMMUNITY MANAGER
    1000 Comments 250 Likes 25 Answers Third Anniversary

    Hi @PriscilaGoncalves , in this particular case, it may be worth referring to our developer community here if you haven't already. You are more likely to find the advice you need.