Skip to content

Commit cf35ad3

Browse files
committed
:octocat: phpstan made me do it
1 parent fc4c764 commit cf35ad3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Crypto.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public static function sha512(string $data, bool $binary = false):string{
6666
/**
6767
* Generates a secure random string of the given $length, using the characters (8-bit byte) in the given $keyspace.
6868
*
69-
* @throws \Random\RandomException
70-
*
7169
* @noinspection PhpFullyQualifiedNameUsageInspection
7270
* @SuppressWarnings(PHPMD.MissingImport)
7371
*/
@@ -105,7 +103,7 @@ public static function createEncryptionKey():string{
105103
* @see \sodium_bin2base64()
106104
* @see \sodium_bin2hex()
107105
*
108-
* @throws \SodiumException|\Random\RandomException
106+
* @throws \SodiumException
109107
*/
110108
public static function encrypt(string $data, string $keyHex, int $format = self::ENCRYPT_FORMAT_HEX):string{
111109
$nonce = random_bytes(SODIUM_CRYPTO_SECRETBOX_NONCEBYTES);

0 commit comments

Comments
 (0)