From ddfa71ee9f101394b4ff682471bc31a7ba6de5cf Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 16 Nov 2021 07:59:36 -0600 Subject: [PATCH] wip --- src/Illuminate/Database/Query/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 05b81bcfe6f1..fc3b9d86c445 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -1959,7 +1959,7 @@ public function limit($value) $property = $this->unions ? 'unionLimit' : 'limit'; if ($value >= 0) { - $this->$property = $value; + $this->$property = (int) $value; } return $this;