The expression return Bmatovu\AirtelMon...en::create($tokenAttrs) could return the type Illuminate\Database\Eloq...gHasThroughRelationship which is incompatible with the type-hinted return Illuminate\Database\Eloquent\Model. Consider adding an additional type-check to rule them out.
Loading history...
20
}
21
22
1
public function retrieveAll()
23
{
24
1
return Token::get();
25
}
26
27
8
public function retrieve(?string $accessToken = null): ?Model
The expression return $token->fresh() could return the type null which is incompatible with the type-hinted return Illuminate\Database\Eloquent\Model. Consider adding an additional type-check to rule them out.