Skip to content

Commit 32b2c07

Browse files
authored
Remove type-hinting from "Auth::get_signed_token"
1 parent 4f42d89 commit 32b2c07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Auth.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ public static function get_token_expiration() {
121121
}
122122

123123
/**
124-
* @param $user
124+
* Retrieves validates user and retrieve signed token
125+
*
126+
* @param User|WP_User $user Owner of the token.
125127
*
126128
* @return null|string
127129
*/
128-
protected static function get_signed_token( \WP_User $user, $cap_check = true ) {
130+
protected static function get_signed_token( $user, $cap_check = true ) {
129131

130132
/**
131133
* Only allow the currently signed in user access to a JWT token

0 commit comments

Comments
 (0)