diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-06-27 16:56:35 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-07-04 17:05:45 -0700 |
commit | 415edcac9b48983b2266576080bdf4c2fd23482a (patch) | |
tree | 5b67d8bce9f7fd7d900238b6556648cd12476899 /lib/private | |
parent | d9bf6c432e2c28600ee5aa562f3f36f48cb7b7cc (diff) | |
download | nextcloud-server-415edcac9b48983b2266576080bdf4c2fd23482a.tar.gz nextcloud-server-415edcac9b48983b2266576080bdf4c2fd23482a.zip |
chore: More explicit splitHash typing
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Security/Hasher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/Hasher.php b/lib/private/Security/Hasher.php index 081cac51161..3ab0e1bbcac 100644 --- a/lib/private/Security/Hasher.php +++ b/lib/private/Security/Hasher.php @@ -79,7 +79,7 @@ class Hasher implements IHasher { /** * Get the version and hash from a prefixedHash * @param string $prefixedHash - * @return null|array Null if the hash is not prefixed, otherwise array('version' => 1, 'hash' => 'foo') + * @return null|array{version: int, hash: string} Null if the hash is not prefixed, otherwise array('version' => 1, 'hash' => 'foo') */ protected function splitHash(string $prefixedHash): ?array { $explodedString = explode('|', $prefixedHash, 2); |