Skip to content

Commit

Permalink
Changed conversion from intval() to (int).
Browse files Browse the repository at this point in the history
  • Loading branch information
Raistlfiren committed Apr 19, 2018
1 parent 088740d commit 6a6636c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Converter/Parameter/Type/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Page extends AbstractParameter
public function convertRequest()
{
//False will return 0, which will be less than 1, so it should default correctly.
$size = intval($this->values['size']);
$number = intval($this->values['number']);
$size = (int) $this->values['size'];
$number = (int) $this->values['number'];

// Get limit for query
$this->size = $size >= 1 ? $size : self::DEFAULT_PAGE_SIZE;
Expand Down

0 comments on commit 6a6636c

Please sign in to comment.