Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 7f960bb

Browse files
authored
Fix documentation
1 parent 60bbee0 commit 7f960bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ The first closure corresponds to `comments` and the second one corresponds to `a
121121
```php
122122
Builder::hasByNonDependentSubquery(
123123
'comments.author',
124-
fn (Builder $query) => $query->withTrashed(),
125-
fn (Builder $query) => $query->whereKey(123)
124+
fn (HasMany $query) => $query->withTrashed(),
125+
fn (BelongsTo $query) => $query->whereKey(123)
126126
)
127127
```
128128

0 commit comments

Comments
 (0)