aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-06-27 16:56:35 -0700
committerChristopher Ng <chrng8@gmail.com>2024-07-04 17:05:45 -0700
commit415edcac9b48983b2266576080bdf4c2fd23482a (patch)
tree5b67d8bce9f7fd7d900238b6556648cd12476899 /lib/private
parentd9bf6c432e2c28600ee5aa562f3f36f48cb7b7cc (diff)
downloadnextcloud-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.php2
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);