Skip to content

Commit 9e40cc5

Browse files
committed
cast offset to int
1 parent 58d6b11 commit 9e40cc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

laravel/database/query/grammars/grammar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ protected function limit(Query $query)
366366
*/
367367
protected function offset(Query $query)
368368
{
369-
return 'OFFSET '.$query->offset;
369+
return 'OFFSET '. (int) $query->offset;
370370
}
371371

372372
/**
@@ -488,4 +488,4 @@ public function shortcut($sql, &$bindings)
488488
return trim($sql);
489489
}
490490

491-
}
491+
}

0 commit comments

Comments
 (0)