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

Carbon\Carbon::rawAddUnit(): Argument #3 ($value) must #2259

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open
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
22 changes: 11 additions & 11 deletions src/Claims/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Factory
/**
* Constructor.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
* @return void
*/
public function __construct(Request $request)
Expand All @@ -67,8 +67,8 @@ public function __construct(Request $request)
/**
* Get the instance of the claim when passing the name and value.
*
* @param string $name
* @param mixed $value
* @param string $name
* @param mixed $value
* @return \Tymon\JWTAuth\Claims\Claim
*/
public function get($name, $value)
Expand All @@ -87,7 +87,7 @@ public function get($name, $value)
/**
* Check whether the claim exists.
*
* @param string $name
* @param string $name
* @return bool
*/
public function has($name)
Expand All @@ -98,7 +98,7 @@ public function has($name)
/**
* Generate the initial value and return the Claim instance.
*
* @param string $name
* @param string $name
* @return \Tymon\JWTAuth\Claims\Claim
*/
public function make($name)
Expand Down Expand Up @@ -159,8 +159,8 @@ public function jti()
/**
* Add a new claim mapping.
*
* @param string $name
* @param string $classPath
* @param string $name
* @param string $classPath
* @return $this
*/
public function extend($name, $classPath)
Expand All @@ -173,7 +173,7 @@ public function extend($name, $classPath)
/**
* Set the request instance.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
* @return $this
*/
public function setRequest(Request $request)
Expand All @@ -186,12 +186,12 @@ public function setRequest(Request $request)
/**
* Set the token ttl (in minutes).
*
* @param int $ttl
* @param int $ttl
* @return $this
*/
public function setTTL($ttl)
{
$this->ttl = $ttl;
$this->ttl = (int)$ttl;

return $this;
}
Expand All @@ -209,7 +209,7 @@ public function getTTL()
/**
* Set the leeway in seconds.
*
* @param int $leeway
* @param int $leeway
* @return $this
*/
public function setLeeway($leeway)
Expand Down