Skip to content

Commit f235e47

Browse files
committed
might as well cast limit as well
1 parent f337011 commit f235e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/database/query/grammars/grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ protected function orderings(Query $query)
355355
*/
356356
protected function limit(Query $query)
357357
{
358-
return 'LIMIT '.$query->limit;
358+
return 'LIMIT '. (int) $query->limit;
359359
}
360360

361361
/**

0 commit comments

Comments
 (0)