Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(PHPDoc): allow nullable token ttl #91

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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