@@ -54,7 +54,7 @@ |
||
| 54 | 54 | /** |
| 55 | 55 | * @param Client|null $client |
| 56 | 56 | * |
| 57 | - * @return GrantTypeData |
|
| 57 | + * @return callable |
|
| 58 | 58 | */ |
| 59 | 59 | public static function create(? Client $client): self |
| 60 | 60 | { |
@@ -15,7 +15,6 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | use Http\Message\MessageFactory\DiactorosMessageFactory; |
| 17 | 17 | use Http\Message\ResponseFactory; |
| 18 | -use Psr\Http\Server\RequestHandlerInterface; |
|
| 19 | 18 | use OAuth2Framework\Component\Core\Client\Client; |
| 20 | 19 | use OAuth2Framework\Component\Core\Client\ClientId; |
| 21 | 20 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
@@ -26,6 +25,7 @@ discard block |
||
| 26 | 25 | use OAuth2Framework\Component\TokenRevocationEndpoint\TokenTypeHintManager; |
| 27 | 26 | use PHPUnit\Framework\TestCase; |
| 28 | 27 | use Psr\Http\Message\ServerRequestInterface; |
| 28 | +use Psr\Http\Server\RequestHandlerInterface; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @group TokenRevocationEndpoint |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | /** |
| 19 | 19 | * @param AuthorizationCode $authorizationCode |
| 20 | + * @return void |
|
| 20 | 21 | */ |
| 21 | 22 | public function save(AuthorizationCode $authorizationCode); |
| 22 | 23 | |
@@ -15,7 +15,6 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | use Http\Message\MessageFactory\DiactorosMessageFactory; |
| 17 | 17 | use Http\Message\ResponseFactory; |
| 18 | -use Psr\Http\Server\RequestHandlerInterface; |
|
| 19 | 18 | use OAuth2Framework\Component\Core\Client\Client; |
| 20 | 19 | use OAuth2Framework\Component\Core\Client\ClientId; |
| 21 | 20 | use OAuth2Framework\Component\Core\DataBag\DataBag; |
@@ -26,6 +25,7 @@ discard block |
||
| 26 | 25 | use OAuth2Framework\Component\TokenRevocationEndpoint\TokenTypeHintManager; |
| 27 | 26 | use PHPUnit\Framework\TestCase; |
| 28 | 27 | use Psr\Http\Message\ServerRequestInterface; |
| 28 | +use Psr\Http\Server\RequestHandlerInterface; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @group TokenRevocationEndpoint |
@@ -17,6 +17,7 @@ |
||
| 17 | 17 | { |
| 18 | 18 | /** |
| 19 | 19 | * @param InitialAccessToken $initialAccessToken |
| 20 | + * @return void |
|
| 20 | 21 | */ |
| 21 | 22 | public function save(InitialAccessToken $initialAccessToken); |
| 22 | 23 | |
@@ -19,6 +19,7 @@ |
||
| 19 | 19 | * Save the client. |
| 20 | 20 | * |
| 21 | 21 | * @param Client $client |
| 22 | + * @return void |
|
| 22 | 23 | */ |
| 23 | 24 | public function save(Client $client); |
| 24 | 25 | |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | |
| 310 | 310 | /** |
| 311 | 311 | * @param string $responseHeader |
| 312 | - * @param mixed $value |
|
| 312 | + * @param string $value |
|
| 313 | 313 | * |
| 314 | 314 | * @return Authorization |
| 315 | 315 | */ |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | |
| 432 | 432 | /** |
| 433 | 433 | * @param string $key |
| 434 | - * @param mixed $data |
|
| 434 | + * @param boolean $data |
|
| 435 | 435 | * |
| 436 | 436 | * @return Authorization |
| 437 | 437 | */ |
@@ -21,6 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @param RefreshToken $refreshToken |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function save(RefreshToken $refreshToken); |
| 26 | 27 | |
@@ -14,10 +14,10 @@ |
||
| 14 | 14 | namespace OAuth2Framework\Component\AuthorizationCodeGrant; |
| 15 | 15 | |
| 16 | 16 | use OAuth2Framework\Component\AuthorizationCodeGrant\PKCEMethod\PKCEMethodManager; |
| 17 | -use OAuth2Framework\Component\TokenEndpoint\GrantTypeData; |
|
| 18 | 17 | use OAuth2Framework\Component\Core\Client\Client; |
| 19 | 18 | use OAuth2Framework\Component\Core\Exception\OAuth2Exception; |
| 20 | 19 | use OAuth2Framework\Component\TokenEndpoint\GrantType; |
| 20 | +use OAuth2Framework\Component\TokenEndpoint\GrantTypeData; |
|
| 21 | 21 | use Psr\Http\Message\ServerRequestInterface; |
| 22 | 22 | |
| 23 | 23 | class AuthorizationCodeGrantType implements GrantType |