Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix class names #33

Merged
merged 1 commit into from
Aug 21, 2016
Merged

Fix class names #33

merged 1 commit into from
Aug 21, 2016

Conversation

talvbansal
Copy link
Contributor

Fixes a bug that causes this error

[Symfony\Component\Debug\Exception\FatalThrowableError]                                                   
  Type error: Argument 1 passed to Laravel\Scout\SearchableScope::Laravel\Scout\{closure}() must be an ins  
  tance of Laravel\Scout\Builder, instance of Illuminate\Database\Eloquent\Builder given

Since an \Illuminate\Database\Eloquent\Builder doesn't extend Laravel\Scout\Builder to me the previous code will not work, these simple class name updates should fix the problem.

Fixes a bug that causes this error
```
[Symfony\Component\Debug\Exception\FatalThrowableError]                                                   
  Type error: Argument 1 passed to Laravel\Scout\SearchableScope::Laravel\Scout\{closure}() must be an ins  
  tance of Laravel\Scout\Builder, instance of Illuminate\Database\Eloquent\Builder given
```

Since an \Illuminate\Database\Eloquent\Builder doesn't extend Laravel\Scout\Builder to me the previous code will not work, these simple class name updates should fix the problem.
@talvbansal
Copy link
Contributor Author

This should fix #27 too since i had the same problem and don't with the above change

@taylorotwell taylorotwell merged commit af6821d into laravel:master Aug 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants