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

Declares indexQuery return type #176

Merged
merged 3 commits into from
Sep 13, 2023
Merged

Declares indexQuery return type #176

merged 3 commits into from
Sep 13, 2023

Conversation

mennotempelaar
Copy link
Contributor

When I open Laravel Nova with the implemented package I get the following error: https://flareapp.io/share/q5Yze1Qm. This PR will fix the error.

The Resource class from which the indexQuery method will be overwritten in the HasSortableRows Trait contains the : Builder response type declaration. This PR implements this : Builder response type declaration within the HasSortableRows Trait.

This fixes the issue.

PS: I've also bumped the laravel/nova version to ^4.27.10.

Laravel Nova has defined a return type for this method and for this, it must also be incorporated into the Trait.
@mennotempelaar
Copy link
Contributor Author

I've changed the version of laravel/nova back to 4.24.0 since it has no changes with the latest version.

I'll try to search for the change in the laravel/nova package for when the Builder response type was added, but for now this will do.

@Tarpsvo Tarpsvo merged commit e75cbb9 into outl1ne:main Sep 13, 2023
@Tarpsvo
Copy link
Collaborator

Tarpsvo commented Sep 13, 2023

Thanks a ton @mennotempelaar! :) Your fix is now live in 3.4.6.

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