composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

View File

@@ -11,34 +11,17 @@
namespace Tymon\JWTAuth\Claims;
use Tymon\JWTAuth\Exceptions\InvalidClaimException;
use Tymon\JWTAuth\Exceptions\TokenInvalidException;
class NotBefore extends Claim
{
use DatetimeTrait {
validateCreate as commonValidateCreate;
}
use DatetimeTrait;
/**
* {@inheritdoc}
*/
protected $name = 'nbf';
/**
* {@inheritdoc}
*/
public function validateCreate($value)
{
$this->commonValidateCreate($value);
if ($this->isFuture($value)) {
throw new InvalidClaimException($this);
}
return $value;
}
/**
* {@inheritdoc}
*/

View File

@@ -84,9 +84,7 @@ class Factory
$this->emptyClaims();
}
$payload = $this->withClaims($this->buildClaimsCollection());
return $payload;
return $this->withClaims($this->buildClaimsCollection());
}
/**