Skip to content

Commit 8fe65cc

Browse files
authored
Merge pull request #57 from webrium/fix/duplicate-method-annotations-ide-false-positive
Fix/duplicate method annotations ide false positive
2 parents c354d9b + 0bcfd07 commit 8fe65cc

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Eloquent/Model.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
* @method static Builder distinct()
5656
*
5757
* WHERE
58-
* @method static Builder where(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null)
5958
* @method static Builder orWhere(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null)
6059
* @method static Builder whereNot(string $column, mixed $operatorOrValue, mixed $value = null)
6160
* @method static Builder whereRaw(string $expression, array $bindings = [])
@@ -120,7 +119,6 @@
120119
* EXECUTE / FETCH
121120
* @method static Collection get()
122121
* @method static static|null first()
123-
* @method static static|null find(int|string $id)
124122
* @method static mixed value(string $column)
125123
* @method static array pluck(string $column, string|null $keyColumn = null)
126124
* @method static void chunk(int $size, callable $callback)
@@ -133,7 +131,6 @@
133131
* @method static float|int avg(string $column)
134132
* @method static float|int min(string $column)
135133
* @method static float|int max(string $column)
136-
* @method static bool exists()
137134
* @method static bool doesntExist()
138135
*
139136
* WRITE
@@ -897,7 +894,7 @@ public function toArray(): array
897894

898895
// Append any loaded (eager or lazy cached) relations.
899896
foreach ($this->relations as $name => $value) {
900-
if ($value instanceof \Foxdb\Support\Collection) {
897+
if ($value instanceof Collection) {
901898
$attrs[$name] = array_map(
902899
fn(object $item) => $item instanceof self ? $item->toArray() : (array) $item,
903900
$value->all(),

0 commit comments

Comments
 (0)