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

Commit 4dc077f

Browse files
committed
:octocat: make PHPStorm stop yelling
1 parent 6fe2c08 commit 4dc077f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/OAuthTestMemoryStorage.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ public function getAccessToken(string $service):AccessToken{
6161

6262
$tokenfile = $this->storagepath.'/'.$service.'.token.json';
6363
if(file_exists($tokenfile)){
64-
return (new AccessToken)->fromJSON(file_get_contents($tokenfile));
64+
65+
/** @var \chillerlan\OAuth\Core\AccessToken $token */
66+
$token = (new AccessToken)->fromJSON(file_get_contents($tokenfile));
67+
68+
return $token;
6569
}
6670

6771
throw new OAuthStorageException('token not found');

0 commit comments

Comments
 (0)