From 415edcac9b48983b2266576080bdf4c2fd23482a Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 27 Jun 2024 16:56:35 -0700 Subject: [PATCH] chore: More explicit splitHash typing Signed-off-by: Christopher Ng --- lib/private/Security/Hasher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Security/Hasher.php b/lib/private/Security/Hasher.php index 081cac5116167..3ab0e1bbcac1f 100644 --- a/lib/private/Security/Hasher.php +++ b/lib/private/Security/Hasher.php @@ -79,7 +79,7 @@ public function hash(string $message): string { /** * 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);