Skip to content

Commit 264b967

Browse files
committed
Merge branch 'main' of github.com:hypervel/components
2 parents 6fb239c + 823b38d commit 264b967

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/core/src/Database/Eloquent/Builder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
* @method array<int, TModel> eagerLoadRelations(array $models)
4343
* @method \Hypervel\Database\Eloquent\Relations\Contracts\Relation<\Hypervel\Database\Eloquent\Model, TModel, *> getRelation(string $name)
4444
* @method TModel getModel()
45-
* @method bool chunk(int $count, callable(\Hypervel\Support\Collection<int, TModel>, int): (bool|void) $callback)
46-
* @method bool chunkById(int $count, callable(\Hypervel\Support\Collection<int, TModel>, int): (bool|void) $callback, null|string $column = null, null|string $alias = null)
47-
* @method bool chunkByIdDesc(int $count, callable(\Hypervel\Support\Collection<int, TModel>, int): (bool|void) $callback, null|string $column = null, null|string $alias = null)
45+
* @method bool chunk(int $count, callable(\Hypervel\Database\Eloquent\Collection<int, TModel>, int): (bool|void) $callback)
46+
* @method bool chunkById(int $count, callable(\Hypervel\Database\Eloquent\Collection<int, TModel>, int): (bool|void) $callback, null|string $column = null, null|string $alias = null)
47+
* @method bool chunkByIdDesc(int $count, callable(\Hypervel\Database\Eloquent\Collection<int, TModel>, int): (bool|void) $callback, null|string $column = null, null|string $alias = null)
4848
* @method bool each(callable(TModel, int): (bool|void) $callback, int $count = 1000)
4949
* @method bool eachById(callable(TModel, int): (bool|void) $callback, int $count = 1000, null|string $column = null, null|string $alias = null)
5050
* @method $this whereIn(string $column, mixed $values, string $boolean = 'and', bool $not = false)

types/Database/Eloquent/Builder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,18 @@ function test(
123123
assertType('Hypervel\Database\Eloquent\Builder<Hypervel\Types\Builder\User>', $query->orWhereMorphRelation($post->taggable(), 'taggable', 'id', 1));
124124

125125
$query->chunk(1, function ($users, $page) {
126-
assertType('Hypervel\Support\Collection<int, Hypervel\Types\Builder\User>', $users);
126+
assertType('Hypervel\Database\Eloquent\Collection<int, Hypervel\Types\Builder\User>', $users);
127127
assertType('int', $page);
128128
});
129129
$query->chunkById(1, function ($users, $page) {
130-
assertType('Hypervel\Support\Collection<int, Hypervel\Types\Builder\User>', $users);
130+
assertType('Hypervel\Database\Eloquent\Collection<int, Hypervel\Types\Builder\User>', $users);
131131
assertType('int', $page);
132132
});
133133
$query->chunkMap(function ($users) {
134134
assertType('Hypervel\Types\Builder\User', $users);
135135
});
136136
$query->chunkByIdDesc(1, function ($users, $page) {
137-
assertType('Hypervel\Support\Collection<int, Hypervel\Types\Builder\User>', $users);
137+
assertType('Hypervel\Database\Eloquent\Collection<int, Hypervel\Types\Builder\User>', $users);
138138
assertType('int', $page);
139139
});
140140
$query->each(function ($users, $page) {

0 commit comments

Comments
 (0)