Skip to content

Commit

Permalink
add missing exception annotations (#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
asteragos authored Dec 18, 2024
1 parent 463100c commit 8dc01b2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ protected function getPkceMethod()
*
* @param array $options
* @return array Authorization parameters
* @throws InvalidArgumentException
*/
protected function getAuthorizationParameters(array $options)
{
Expand Down Expand Up @@ -476,6 +477,7 @@ protected function getAuthorizationQuery(array $params)
*
* @param array $options
* @return string Authorization URL
* @throws InvalidArgumentException
*/
public function getAuthorizationUrl(array $options = [])
{
Expand All @@ -492,6 +494,7 @@ public function getAuthorizationUrl(array $options = [])
* @param array $options
* @param callable|null $redirectHandler
* @return mixed
* @throws InvalidArgumentException
*/
public function authorize(
array $options = [],
Expand Down Expand Up @@ -613,8 +616,9 @@ protected function getAccessTokenRequest(array $params)
*
* @param mixed $grant
* @param array<string, mixed> $options
* @throws IdentityProviderException
* @return AccessTokenInterface
* @throws IdentityProviderException
* @throws UnexpectedValueException
*/
public function getAccessToken($grant, array $options = [])
{
Expand Down Expand Up @@ -719,8 +723,9 @@ public function getResponse(RequestInterface $request)
* Sends a request and returns the parsed response.
*
* @param RequestInterface $request
* @throws IdentityProviderException
* @return mixed
* @throws IdentityProviderException
* @throws UnexpectedValueException
*/
public function getParsedResponse(RequestInterface $request)
{
Expand Down Expand Up @@ -868,6 +873,8 @@ abstract protected function createResourceOwner(array $response, AccessToken $to
*
* @param AccessToken $token
* @return ResourceOwnerInterface
* @throws IdentityProviderException
* @throws UnexpectedValueException
*/
public function getResourceOwner(AccessToken $token)
{
Expand All @@ -881,6 +888,8 @@ public function getResourceOwner(AccessToken $token)
*
* @param AccessToken $token
* @return mixed
* @throws IdentityProviderException
* @throws UnexpectedValueException
*/
protected function fetchResourceOwnerDetails(AccessToken $token)
{
Expand Down

0 comments on commit 8dc01b2

Please sign in to comment.