Skip to content

Commit

Permalink
ensure offset is always an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
narcoticfresh committed Jul 15, 2019
1 parent 62ca223 commit 15697b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NodeParser/LimitNodeParser.php
Expand Up @@ -28,7 +28,7 @@ public function __construct(SubParserInterface $valueParser)
public function parse(TokenStream $tokenStream)
{
$limit = null;
$offset = null;
$offset = 0;

$tokenStream->expect(Token::T_OPERATOR, 'limit');
$tokenStream->expect(Token::T_OPEN_PARENTHESIS);
Expand Down

0 comments on commit 15697b9

Please sign in to comment.