Skip to content

Commit

Permalink
Merge pull request #4 from oniz93/master
Browse files Browse the repository at this point in the history
Removed return type "Token" on "find" method
  • Loading branch information
overtrue authored Nov 27, 2020
2 parents fa82bf5 + 26fb725 commit 7ddee68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CacheTokenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(string $cacheKey = null, int $expiresInSeconds = nul
*
* @return \Laravel\Passport\Token
*/
public function find($id): Token
public function find($id)
{
return Cache::remember($this->cacheKey . $id, \now()->addSeconds($this->expiresInSeconds), function () use ($id) {
return Passport::token()->where('id', $id)->first();
Expand Down

0 comments on commit 7ddee68

Please sign in to comment.