Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
🚿
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jul 31, 2023
1 parent d530aaf commit c37b3c3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Storage/OAuthStorageAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,13 @@ public function toStorage(AccessToken $token):string{

/**
* @inheritDoc
* @phan-suppress PhanTypeMismatchReturnSuperType
*/
public function fromStorage(mixed $data):AccessToken{

if(!is_string($data)){
throw new OAuthStorageException('invalid data');
}

/** @noinspection PhpIncompatibleReturnTypeInspection */
return (new AccessToken)->fromJSON($data);
}

Expand Down

0 comments on commit c37b3c3

Please sign in to comment.