From 3bbd888556362f7bfdca98b7d8c845662c5fe68c Mon Sep 17 00:00:00 2001 From: Leonid Meleshin Date: Mon, 27 Dec 2021 14:07:28 +0300 Subject: [PATCH] docs(PHPDoc): allow nullable token ttl Close #89 --- src/Claims/Factory.php | 6 +++--- src/Factory.php | 2 +- src/JWTGuard.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Claims/Factory.php b/src/Claims/Factory.php index 8e95ba83..6a6ecd87 100644 --- a/src/Claims/Factory.php +++ b/src/Claims/Factory.php @@ -29,7 +29,7 @@ class Factory /** * The TTL. * - * @var int + * @var int|null */ protected $ttl = 60; @@ -194,7 +194,7 @@ public function setRequest(Request $request) /** * Set the token ttl (in minutes). * - * @param int $ttl + * @param int|null $ttl * * @return $this */ @@ -208,7 +208,7 @@ public function setTTL($ttl) /** * Get the token ttl. * - * @return int + * @return int|null */ public function getTTL() { diff --git a/src/Factory.php b/src/Factory.php index 2552a969..b3b4460e 100644 --- a/src/Factory.php +++ b/src/Factory.php @@ -195,7 +195,7 @@ public function setDefaultClaims(array $claims) /** * Helper to set the ttl. * - * @param int $ttl + * @param int|null $ttl * * @return $this */ diff --git a/src/JWTGuard.php b/src/JWTGuard.php index bbc07d68..88a9ce92 100644 --- a/src/JWTGuard.php +++ b/src/JWTGuard.php @@ -320,7 +320,7 @@ public function setToken($token) /** * Set the token ttl. * - * @param int $ttl + * @param int|null $ttl * * @return $this */