From a8cd8cd2dba1b85232b1bdc1899ac13ed49b1508 Mon Sep 17 00:00:00 2001 From: Benoit Duffez Date: Thu, 12 Dec 2024 09:29:53 -0800 Subject: [PATCH] fix return type for getRefreshTokenGrant phpdoc if someone wants to use a custom refreshable grant type and implement this interface, then the code will fail some validation because the expected return type (inferred from the phpdoc @return) will not pass. I think it would be better to remove this phpdoc @return because the function uses explicit typing system from PHP, however this will fix it too --- src/GrantType/RefreshableGrantTypeInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GrantType/RefreshableGrantTypeInterface.php b/src/GrantType/RefreshableGrantTypeInterface.php index ad52d39..dcd72a4 100644 --- a/src/GrantType/RefreshableGrantTypeInterface.php +++ b/src/GrantType/RefreshableGrantTypeInterface.php @@ -14,7 +14,7 @@ interface RefreshableGrantTypeInterface extends GrantTypeInterface * * @param string $refreshToken An OAuth refresh token acquired by this grant type. * - * @return RefreshTokenGrantType A refresh grant type built from this grant type. + * @return GrantTypeInterface A refresh grant type built from this grant type. */ public function getRefreshTokenGrant(string $refreshToken): GrantTypeInterface; }