Skip to content

Commit 0bcfd07

Browse files
committed
style(model): use imported Collection short name instead of FQCN in toArray()
1 parent 1691b94 commit 0bcfd07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ public function toArray(): array
894894

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

0 commit comments

Comments
 (0)