-
-
Notifications
You must be signed in to change notification settings - Fork 859
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
Return type void #1367
Labels
Comments
@samuelecarpene thanks for reporting. Must be added by phpstorm while refactoring the code. Will release a patch for this. Thanks! |
yajra
added a commit
that referenced
this issue
Sep 6, 2017
yajra
added a commit
that referenced
this issue
Sep 6, 2017
[8.0] Remove void return type. Fix #1367
Patch released on v8.0.2. Thanks! |
BTW, you can also remove |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I updated to v8 of datatables but i have an erorr using orderColumn.
I'm using datatables to show list of users with role.
When click on column header for ordering some data i receive this error
Type error: Return value of Yajra\DataTables\QueryDataTable::applyOrderColumn() must be an instance of Yajra\DataTables\void, none returned
DataTable class
I think the problem is the return void in the function definition (https://github.com/yajra/laravel-datatables/blob/8.0/src/QueryDataTable.php#L596) because return type void is implemented in php 7.1 as described here (https://wiki.php.net/rfc/void_return_type#php_rfcvoid_return_type).
If i remove the return type all work correctly.
I checked all code and it is the only one present so i think you can remove to keep compatibility with php 7.0.
Thank you.
The text was updated successfully, but these errors were encountered: