Basic-Shopify-API icon indicating copy to clipboard operation
Basic-Shopify-API copied to clipboard

PHP 8.1 Warnings

Open asacarter opened this issue 2 years ago • 1 comments

Deprecated: Return type of Osiset\BasicShopifyAPI\ResponseAccess::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \vendor\osiset\basic-shopify-api\src\Osiset\BasicShopifyAPI\ResponseAccess.php on line 60

Deprecated: Return type of Osiset\BasicShopifyAPI\ResponseAccess::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \vendor\osiset\basic-shopify-api\src\ResponseAccess.php on line 156

#[\ReturnTypeWillChange] can be used to suppress the warning.

asacarter avatar Apr 16 '22 14:04 asacarter

Looks like https://github.com/osiset/Basic-Shopify-API/pull/129 solves this. Once it's merged

JoshHighland avatar Aug 02 '22 02:08 JoshHighland