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;