Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing exception annotations #1050

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading