From 916925b099fb3dbc1c0fa994063c3602bc4ddc38 Mon Sep 17 00:00:00 2001
From: Paragon Initiative Enterprises <security@paragonie.com>
Date: Wed, 4 Sep 2024 08:49:34 -0400
Subject: [PATCH] PHP 8.4 compat nits

---
 src/Core/AES/Block.php     | 4 ++--
 src/Core/Curve25519/Fe.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Core/AES/Block.php b/src/Core/AES/Block.php
index 771a9c5a..c93c1a48 100644
--- a/src/Core/AES/Block.php
+++ b/src/Core/AES/Block.php
@@ -25,7 +25,7 @@ class ParagonIE_Sodium_Core_AES_Block extends SplFixedArray
     /**
      * @param int $size
      */
-    public function __construct($size = 8)
+    public function __construct(int $size = 8)
     {
         parent::__construct($size);
         $this->size = $size;
@@ -50,7 +50,7 @@ public static function init(): self
      * @psalm-suppress MethodSignatureMismatch
      */
     #[ReturnTypeWillChange]
-    public static function fromArray($array, $save_indexes = null)
+    public static function fromArray($array, ?bool $save_indexes = null)
     {
         $count = count($array);
         if ($save_indexes) {
diff --git a/src/Core/Curve25519/Fe.php b/src/Core/Curve25519/Fe.php
index d8127bc4..4569ce23 100644
--- a/src/Core/Curve25519/Fe.php
+++ b/src/Core/Curve25519/Fe.php
@@ -104,7 +104,7 @@ public function offsetUnset($offset): void
      * @psalm-suppress ImplementedReturnTypeMismatch
      */
     #[ReturnTypeWillChange]
-    public function offsetGet($offset)
+    public function offsetGet($offset): int
     {
         if (!isset($this->container[$offset])) {
             $this->container[$offset] = 0;