Skip to content

Commit 62273d2

Browse files
committed
cast to int for safety. grammar already does so this is just extre precaution.
1 parent fe54e00 commit 62273d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ public function limit($value)
21022102
$property = $this->unions ? 'unionLimit' : 'limit';
21032103

21042104
if ($value >= 0) {
2105-
$this->$property = $value;
2105+
$this->$property = (int) $value;
21062106
}
21072107

21082108
return $this;

0 commit comments

Comments
 (0)