Skip to content

Commit

Permalink
docs(PHPDoc): allow nullable token ttl
Browse files Browse the repository at this point in the history
Close #89
  • Loading branch information
leon0399 committed Dec 27, 2021
1 parent 8943820 commit 3bbd888
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Claims/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Factory
/**
* The TTL.
*
* @var int
* @var int|null
*/
protected $ttl = 60;

Expand Down Expand Up @@ -194,7 +194,7 @@ public function setRequest(Request $request)
/**
* Set the token ttl (in minutes).
*
* @param int $ttl
* @param int|null $ttl
*
* @return $this
*/
Expand All @@ -208,7 +208,7 @@ public function setTTL($ttl)
/**
* Get the token ttl.
*
* @return int
* @return int|null
*/
public function getTTL()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function setDefaultClaims(array $claims)
/**
* Helper to set the ttl.
*
* @param int $ttl
* @param int|null $ttl
*
* @return $this
*/
Expand Down
2 changes: 1 addition & 1 deletion src/JWTGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function setToken($token)
/**
* Set the token ttl.
*
* @param int $ttl
* @param int|null $ttl
*
* @return $this
*/
Expand Down

0 comments on commit 3bbd888

Please sign in to comment.