Deprecated code myparcel plugin

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
1 year 2 months ago #355258

-- HikaShop version -- : 5.0.0.
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.1

Hi Supportteam,

Are you aware of these notifications?

Deprecated: Return type of MyParcelNL\Sdk\src\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/sites/web/.../www/plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Support/Collection.php on line 1789

Deprecated: Return type of MyParcelNL\Sdk\src\Support\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/sites/web/.../www/plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Support/Collection.php on line 1800

Deprecated: Return type of MyParcelNL\Sdk\src\Support\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/sites/web/.../www/plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Support/Collection.php on line 1812

Deprecated: Return type of MyParcelNL\Sdk\src\Support\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/sites/web/.../www/plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Support/Collection.php on line 1827

Deprecated: Return type of MyParcelNL\Sdk\src\Support\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/sites/web/.../www/plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Support/Collection.php on line 1768

Deprecated: Return type of MyParcelNL\Sdk\src\Support\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/sites/web/.../www/plugins/hikashop/myparcel/vendor/myparcelnl/sdk/src/Support/Collection.php on line 1747


Kind regards,
Lumiga
Last edit: 1 year 2 months ago by Lumiga.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 2 months ago #355261

Hi,

We were not aware. Thanks for telling us.
These come from the PHP SDK we're using in MyParcel:
github.com/myparcelnl/sdk/pull/357
You can directly apply the modifications in : github.com/myparcelnl/sdk/pull/357/commi...ef950ac30c6445cdde64
to the file plugins/hikashop/myparcel/vendor/src/Support/Collection.php and it will remove the deprecated messages.
We'll look at publishing a new version of the plugin.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum