Skip to content

Commit eaca1cb

Browse files
authored
Fixes database offset value with non numbers (#37164)
1 parent 0117d79 commit eaca1cb

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
@@ -1932,7 +1932,7 @@ public function offset($value)
19321932
{
19331933
$property = $this->unions ? 'unionOffset' : 'offset';
19341934

1935-
$this->$property = max(0, $value);
1935+
$this->$property = max(0, (int) $value);
19361936

19371937
return $this;
19381938
}

0 commit comments

Comments
 (0)