@@ -3262,7 +3262,7 @@ protected function ensureOrderForCursorPagination($shouldReverse = false)
3262
3262
* Get the count of the total records for the paginator.
3263
3263
*
3264
3264
* @param array<string|\Illuminate\Contracts\Database\Query\Expression> $columns
3265
- * @return int
3265
+ * @return int<0, max>
3266
3266
*/
3267
3267
public function getCountForPagination ($ columns = ['* ' ])
3268
3268
{
@@ -3551,7 +3551,7 @@ public function doesntExistOr(Closure $callback)
3551
3551
* Retrieve the "count" result of the query.
3552
3552
*
3553
3553
* @param \Illuminate\Contracts\Database\Query\Expression|string $columns
3554
- * @return int
3554
+ * @return int<0, max>
3555
3555
*/
3556
3556
public function count ($ columns = '* ' )
3557
3557
{
<
8000
svg aria-hidden="true" focusable="false" class="octicon octicon-fold-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"> @@ -3753,7 +3753,7 @@ public function insert(array $values)
3753
3753
/**
3754
3754
* Insert new records into the database while ignoring errors.
3755
3755
*
3756
- * @return int
3756
+ * @return int<0, max>
3757
3757
*/
3758
3758
public function insertOrIgnore (array $ values )
3759
3759
{
@@ -3835,7 +3835,7 @@ public function insertOrIgnoreUsing(array $columns, $query)
3835
3835
/**
3836
3836
* Update records in the database.
3837
3837
*
3838
- * @return int
3838
+ * @return int<0, max>
3839
3839
*/
3840
3840
public function update (array $ values )
3841
3841
{
@@ -3953,7 +3953,7 @@ public function upsert(array $values, array|string $uniqueBy, ?array $update = n
3953
3953
*
3954
3954
* @param string $column
3955
3955
8000
* @param float|int $amount
3956
- * @return int
3956
+ * @return int<0, max>
3957
3957
*
3958
3958
* @throws \InvalidArgumentException
3959
3959
*/
@@ -3971,7 +3971,7 @@ public function increment($column, $amount = 1, array $extra = [])
3971
3971
*
3972
3972
* @param array<string, float|int|numeric-string> $columns
3973
3973
* @param array<string, mixed> $extra
3974
- * @return int
3974
+ * @return int<0, max>
3975
3975
*
3976
3976
* @throws \InvalidArgumentException
3977
3977
*/
@@ -3995,7 +3995,7 @@ public function incrementEach(array $columns, array $extra = [])
3995
3995
*
3996
3996
* @param string $column
3997
3997
* @param float|int $amount
3998
- * @return int
3998
+ * @return int<0, max>
3999
3999
*
4000
4000
* @throws \InvalidArgumentException
4001
4001
*/
@@ -4013,7 +4013,7 @@ public function decrement($column, $amount = 1, array $extra = [])
4013
4013
*
4014
4014
* @param array<string, float|int|numeric-string> $columns
4015
4015
* @param array<string, mixed> $extra
4016
- * @return int
4016
+ * @return int<0, max>
4017
4017
*
4018
4018
* @throws \InvalidArgumentException
4019
4019
*/
0 commit comments