Problems with the PHP upgrade to 8.2
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?
Answers
-
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]
0 -
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.
0