From 1691b942dc7dc7477a4379f41a3fa39b6e91092e Mon Sep 17 00:00:00 2001 From: benkhalife Date: Thu, 18 Jun 2026 11:40:53 +0330 Subject: [PATCH 1/2] fix(model): drop duplicate @method tags for where/find/exists to fix IDE false-positive --- src/Eloquent/Model.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Eloquent/Model.php b/src/Eloquent/Model.php index c802466..a8f50ac 100644 --- a/src/Eloquent/Model.php +++ b/src/Eloquent/Model.php @@ -55,7 +55,6 @@ * @method static Builder distinct() * * WHERE - * @method static Builder where(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null) * @method static Builder orWhere(string|\Closure $column, mixed $operatorOrValue = null, mixed $value = null) * @method static Builder whereNot(string $column, mixed $operatorOrValue, mixed $value = null) * @method static Builder whereRaw(string $expression, array $bindings = []) @@ -120,7 +119,6 @@ * EXECUTE / FETCH * @method static Collection get() * @method static static|null first() - * @method static static|null find(int|string $id) * @method static mixed value(string $column) * @method static array pluck(string $column, string|null $keyColumn = null) * @method static void chunk(int $size, callable $callback) @@ -133,7 +131,6 @@ * @method static float|int avg(string $column) * @method static float|int min(string $column) * @method static float|int max(string $column) - * @method static bool exists() * @method static bool doesntExist() * * WRITE From 0bcfd07cd9feb14ca873d9b3cf403fc183c7acfc Mon Sep 17 00:00:00 2001 From: benkhalife Date: Thu, 18 Jun 2026 11:42:30 +0330 Subject: [PATCH 2/2] style(model): use imported Collection short name instead of FQCN in toArray() --- src/Eloquent/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Eloquent/Model.php b/src/Eloquent/Model.php index a8f50ac..1bcfd0d 100644 --- a/src/Eloquent/Model.php +++ b/src/Eloquent/Model.php @@ -894,7 +894,7 @@ public function toArray(): array // Append any loaded (eager or lazy cached) relations. foreach ($this->relations as $name => $value) { - if ($value instanceof \Foxdb\Support\Collection) { + if ($value instanceof Collection) { $attrs[$name] = array_map( fn(object $item) => $item instanceof self ? $item->toArray() : (array) $item, $value->all(),