Skip to content

Commit 4f0a5c7

Browse files
committed
Code Quality: Document that sanitize_key() returns lowercase-string.
This is a narrower PHPStan type compared to just `string`. See #64898. git-svn-id: https://develop.svn.wordpress.org/trunk@62836 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 78e0b51 commit 4f0a5c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-includes/formatting.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,6 +2186,7 @@ function sanitize_user( $username, $strict = false ) {
21862186
*
21872187
* @param string $key String key.
21882188
* @return string Sanitized key.
2189+
* @phpstan-return lowercase-string
21892190
*/
21902191
function sanitize_key( $key ) {
21912192
$sanitized_key = '';

0 commit comments

Comments
 (0)