APIv3-php-library icon indicating copy to clipboard operation
APIv3-php-library copied to clipboard

php 8.1 compatibility

Open Pascal76 opened this issue 1 year ago • 7 comments

Hello,

PHP 7.4 is being EOL very soon. A lot of people will migrate to PHP 8.1. Could you make this librairy compatible please ?

Ex: PHP Deprecated: Return type of SendinBlue\Client\Model\GetEmailCampaigns::offsetExists($offset) should either be compatible with ArrayAccess::offs etExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /apache_sites/jbm/lib_8.1/vendor/sendinblue/api-v3-sdk/li b/Model/GetEmailCampaigns.php

Pascal76 avatar Nov 13 '22 17:11 Pascal76

Up

Clemweb avatar Nov 14 '22 09:11 Clemweb

This has been contributed upstream on the swagger-codegen generator project : https://github.com/swagger-api/swagger-codegen/pull/11846

This was released as of version 1.0.36 : https://github.com/swagger-api/swagger-codegen-generators/releases/tag/v1.0.36

To fix these deprecations the classes should be generated with the new tool version.

deguif avatar Nov 23 '22 13:11 deguif

Up

david-services avatar Dec 13 '22 13:12 david-services

Please update the API as very soon as possible as PHP7 is EOL.

barto74 avatar Dec 16 '22 10:12 barto74

Could you please update the library ???

stkrelax avatar Jan 04 '23 07:01 stkrelax

HI, currently we are supporting PHP 7.4. We are working on it to support php 8+.

preetishishodia7 avatar Jan 05 '23 08:01 preetishishodia7

Should be fixed with the latest release, published an hour ago

deguif avatar Jan 05 '23 09:01 deguif