Skip to content

Commit 57eba3e

Browse files
committed
Fix Return value must be of type int, string returned.
1 parent 2dcaad1 commit 57eba3e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/Utilities/Request.php

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,7 @@ public function getBaseRequest(): BaseRequest
254254
*/
255255
public function start(): int
256256
{
257-
/** @var int $start */
258-
$start = $this->request->input('start', 0);
259-
260-
return $start;
257+
return intval($this->request->input('start', 0));
261258
}
262259

263260
/**
@@ -267,10 +264,7 @@ public function start(): int
267264
*/
268265
public function length(): int
269266
{
270-
/** @var int $length */
271-
$length = $this->request->input('length', 10);
272-
273-
return $length;
267+
return intval($this->request->input('length', 10));
274268
}
275269

276270
/**
@@ -280,9 +274,6 @@ public function length(): int
280274
*/
281275
public function draw(): int
282276
{
283-
/** @var int $draw */
284-
$draw = $this->request->input('draw', 0);
285-
286-
return $draw;
277+
return intval($this->request->input('draw', 0));
287278
}
288279
}

0 commit comments

Comments
 (0)