HubSpot / hubspot-api-php

HubSpot API PHP Client Libraries for V3 version of the API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lots of depreciated warnings for PHP 8.1

adam-clarey opened this issue · comments

EG:
Deprecated function: Return type of HubSpot\Client\Crm\Deals\Model\SimplePublicObject::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 43 of /app/vendor/hubspot/api-client/codegen/Crm/Deals/Model/SimplePublicObject.php)

Deprecated function: Return type of HubSpot\Client\Crm\Deals\Model\SimplePublicObject::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 43 of /app/vendor/hubspot/api-client/codegen/Crm/Deals/Model/SimplePublicObject.php)

plus more

commented

Hi, @adam-clarey .
What version of SDK do you use?
I've just checked version 9.2.1 on php 8.1 and It works correctly.

commented

This problem was solved in version 6.0.0.
If you update SDK to 6.0.0 or higher it will work correctly.