mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
chore: More explicit splitHash typing
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
d9bf6c432e
commit
415edcac9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue