Skip to content

Commit

Permalink
chore: More explicit splitHash typing
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Jul 5, 2024
1 parent d9bf6c4 commit 415edca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Security/Hasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 415edca

Please sign in to comment.