Skip to content

Commit 88fb0bc

Browse files
Upgrade/Install: Update sodium_compat to v1.17.0.
The latest version of sodium_compat includes fixes for PHP 8.1 compatibility and a fix for PHP 5.6 compatibility. A full list of changes in this update can be found on GitHub: paragonie/sodium_compat@v1.16.1...v1.17.0 Follow-up to [49741], [51002]. Props jrf. Fixes #53907. git-svn-id: https://develop.svn.wordpress.org/trunk@51591 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2630200 commit 88fb0bc

File tree

7 files changed

+70
-370
lines changed

7 files changed

+70
-370
lines changed

src/wp-includes/sodium_compat/src/Compat.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,7 +3013,7 @@ public static function crypto_stream($len, $nonce, $key)
30133013
/**
30143014
* DANGER! UNAUTHENTICATED ENCRYPTION!
30153015
*
3016-
* Unless you are following expert advice, do not used this feature.
3016+
* Unless you are following expert advice, do not use this feature.
30173017
*
30183018
* Algorithm: XSalsa20
30193019
*
@@ -3112,7 +3112,7 @@ public static function crypto_stream_xchacha20($len, $nonce, $key, $dontFallback
31123112
/**
31133113
* DANGER! UNAUTHENTICATED ENCRYPTION!
31143114
*
3115-
* Unless you are following expert advice, do not used this feature.
3115+
* Unless you are following expert advice, do not use this feature.
31163116
*
31173117
* Algorithm: XChaCha20
31183118
*

src/wp-includes/sodium_compat/src/Core/ChaCha20/Ctx.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function __construct($key = '', $iv = '', $counter = '')
6969
* @return void
7070
* @psalm-suppress MixedArrayOffset
7171
*/
72+
#[ReturnTypeWillChange]
7273
public function offsetSet($offset, $value)
7374
{
7475
if (!is_int($offset)) {
@@ -86,6 +87,7 @@ public function offsetSet($offset, $value)
8687
* @param int $offset
8788
* @return bool
8889
*/
90+
#[ReturnTypeWillChange]
8991
public function offsetExists($offset)
9092
{
9193
return isset($this->container[$offset]);
@@ -98,6 +100,7 @@ public function offsetExists($offset)
98100
* @return void
99101
* @psalm-suppress MixedArrayOffset
100102
*/
103+
#[ReturnTypeWillChange]
101104
public function offsetUnset($offset)
102105
{
103106
unset($this->container[$offset]);
@@ -110,6 +113,7 @@ public function offsetUnset($offset)
110113
* @return mixed|null
111114
* @psalm-suppress MixedArrayOffset
112115
*/
116+
#[ReturnTypeWillChange]
113117
public function offsetGet($offset)
114118
{
115119
return isset($this->container[$offset])

0 commit comments

Comments
 (0)