summaryrefslogtreecommitdiffstats
path: root/src/Components/Limit.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Components/Limit.php')
-rw-r--r--src/Components/Limit.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Components/Limit.php b/src/Components/Limit.php
index 17423e2..a3903b5 100644
--- a/src/Components/Limit.php
+++ b/src/Components/Limit.php
@@ -95,6 +95,11 @@ class Limit extends Component
continue;
}
+ // Skip if not a number
+ if (($token->type !== Token::TYPE_NUMBER)) {
+ break;
+ }
+
if ($offset) {
$ret->offset = $token->value;
$offset = false;