Skip to content

Commit

Permalink
Merge pull request #1841 from stloyd/bugfix/token-bc-break
Browse files Browse the repository at this point in the history
Bugfix | Restore wrongly moved `AbstractOAuthToken::getCredentials()`
  • Loading branch information
stloyd authored Dec 8, 2021
2 parents ae5ad22 + 364c13b commit 4f1b522
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions Security/Core/Authentication/Token/AbstractOAuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ public function __unserialize(array $data): void
}
}

/**
* @return mixed|void
*/
public function getCredentials()
{
return '';
}

/**
* @param string $accessToken The OAuth access token
*/
Expand Down
6 changes: 0 additions & 6 deletions Security/Core/Authentication/Token/OAuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@

class OAuthToken extends AbstractOAuthToken
{
/**
* @return mixed|void
*/
public function getCredentials()
{
}
}

0 comments on commit 4f1b522

Please sign in to comment.