Skip to content

Commit

Permalink
Fix parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
gdebrauwer committed Apr 10, 2024
1 parent 4a40451 commit 8618945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ public function cursor()
$model = $this->newModelInstance()->newFromBuilder($record);

return $this->applyAfterQueryCallbacks($this->newModelInstance()->newCollection([$model]))->first();
})->reject(fn ($item) => is_null($item));
})->reject(fn ($model) => is_null($model));
}

/**
Expand Down

0 comments on commit 8618945

Please sign in to comment.