Skip to content

Commit

Permalink
hotfix - removing typehint for Model on fromUser()
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed Oct 16, 2014
1 parent 3808596 commit eae342e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tymon/JWTAuth/JWTAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public function toUser($token = false)
/**
* Generate a token using the user identifier as the subject claim
*
* @param \Illuminate\Database\Eloquent\Model $user
* @param $user
* @return string
*/
public function fromUser(Model $user)
public function fromUser($user)
{
return $this->provider->encode($user->{$this->identifier})->get();
}
Expand Down

0 comments on commit eae342e

Please sign in to comment.