Skip to content

Commit

Permalink
Merge pull request #2127 from vibbow/fix_basebuilder
Browse files Browse the repository at this point in the history
Update limit function since $offset is nullable
  • Loading branch information
lonnieezell authored Aug 13, 2019
2 parents f18ce1d + ff1199d commit 013b6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ public function orderBy(string $orderBy, string $direction = '', bool $escape =
*
* @return BaseBuilder
*/
public function limit(int $value = null, int $offset = 0)
public function limit(int $value = null, ?int $offset = 0)
{
if (! is_null($value))
{
Expand Down

0 comments on commit 013b6e9

Please sign in to comment.