Deprecation error for paragonie/sodium_compat

Created on 25 November 2022, almost 2 years ago
Updated 24 January 2023, over 1 year ago

Problem/Motivation

after installing the module I get many Deprecated error: see User interface changes bellow
Maybe related to https://github.com/paragonie/sodium_compat/issues/140 ?

Deprecated: Return type of ParagonIE_Sodium_Core_ChaCha20_Ctx::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 /Users/work-macbook/ALL_PROJECTS/valet/my-commerce/vendor/paragonie/sodium_compat/src/Core/ChaCha20/Ctx.php on line 83

Steps to reproduce

run composer require 'drupal/commerce_recruiting:^1.3'
Go to admin or any pages,

User interface changes


Deprecated: Return type of ParagonIE_Sodium_Core_ChaCha20_Ctx::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 /Users/work-macbook/ALL_PROJECTS/valet/my-commerce/vendor/paragonie/sodium_compat/src/Core/ChaCha20/Ctx.php on line 83

Deprecated: Return type of ParagonIE_Sodium_Core_ChaCha20_Ctx::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 /Users/work-macbook/ALL_PROJECTS/valet/my-commerce/vendor/paragonie/sodium_compat/src/Core/ChaCha20/Ctx.php on line 105

Deprecated: Return type of ParagonIE_Sodium_Core_ChaCha20_Ctx::offsetSet($offset, $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 /Users/work-macbook/ALL_PROJECTS/valet/my-commerce/vendor/paragonie/sodium_compat/src/Core/ChaCha20/Ctx.php on line 66

Deprecated: Return type of ParagonIE_Sodium_Core_ChaCha20_Ctx::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 /Users/work-macbook/ALL_PROJECTS/valet/my-commerce/vendor/paragonie/sodium_compat/src/Core/ChaCha20/Ctx.php on line 94

Deprecated: Return type of ParagonIE_Sodium_Core_Curve25519_Fe::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 /Users/work-macbook/ALL_PROJECTS/valet/my-commerce/vendor/paragonie/sodium_compat/src/Core/Curve25519/Fe.php on line 84

Deprecated: Return type of ParagonIE_Sodium_Core_Curve25519_Fe::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 /Users/work-macbook/ALL_PROJECTS/valet/my-commerce/vendor/paragonie/sodium_compat/src/Core/Curve25519/Fe.php on line 106

UPDATE:
The deprecations warning only appear with php 8.1, not 7.4

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024