Skip to content

Commit

Permalink
Fix Return value must be of type int, string returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed May 17, 2022
1 parent 2dcaad1 commit 57eba3e
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/Utilities/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,7 @@ public function getBaseRequest(): BaseRequest
*/
public function start(): int
{
/** @var int $start */
$start = $this->request->input('start', 0);

return $start;
return intval($this->request->input('start', 0));
}

/**
Expand All @@ -267,10 +264,7 @@ public function start(): int
*/
public function length(): int
{
/** @var int $length */
$length = $this->request->input('length', 10);

return $length;
return intval($this->request->input('length', 10));
}

/**
Expand All @@ -280,9 +274,6 @@ public function length(): int
*/
public function draw(): int
{
/** @var int $draw */
$draw = $this->request->input('draw', 0);

return $draw;
return intval($this->request->input('draw', 0));
}
}

0 comments on commit 57eba3e

Please sign in to comment.