Skip to content

Commit 26fb725

Browse files
committed
Removing type "Token" on find method because if the Token does not exists it return Null and raise a TypeError exception
1 parent fa82bf5 commit 26fb725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CacheTokenRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(string $cacheKey = null, int $expiresInSeconds = nul
4444
*
4545
* @return \Laravel\Passport\Token
4646
*/
47-
public function find($id): Token
47+
public function find($id)
4848
{
4949
return Cache::remember($this->cacheKey . $id, \now()->addSeconds($this->expiresInSeconds), function () use ($id) {
5050
return Passport::token()->where('id', $id)->first();

0 commit comments

Comments
 (0)