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

Method makeQuery in the class JoinSupportingQueryBuilderParser in v2.0.0 #65

Open
markimpmc opened this issue Aug 11, 2023 · 2 comments
Assignees

Comments

@markimpmc
Copy link

The makeQuery method inherited from the QueryBuilderParser class in the JoinSupportingQueryBuilderParser class was not rewritten in v2.0.0, causing an error.

QueryBuilderParser:

protected function makeQuery(EloquentBuilder|Builder $query, stdClass $rule, $queryCondition = 'AND')

JoinSupportingQueryBuilderParser:

protected function makeQuery(Builder $query, stdClass $rule, $queryCondition = 'AND')

Error:

[2023-08-11 13:37:30]
local.ERROR: Declaration of timgws\JoinSupportingQueryBuilderParser::makeQuery(Illuminate\Database\Query\Builder $query, stdClass $rule, $queryCondition = 'AND')
must be compatible with timgws\QueryBuilderParser::makeQuery(Illuminate\Database\Eloquent\Builder|Illuminate\Database\Query\Builder $query, stdClass $rule, $queryCondition = 'AND')
@timgws
Copy link
Owner

timgws commented Oct 15, 2023

Thanks for pointing this out. This is bad. I will fix this and sort out the unit tests tomorrow.

@itfixit
Copy link

itfixit commented Jan 23, 2024

Hi, just to add some more details, I experienced the same problem and solved it in my fork temporary. However I notice that the package minimum required version of Laravel is 8 ("illuminate/database": "^9.0||^8.0||^10.0") according to Laravel system requirements for version 8 the minimum required PHP version is 7.3 while as we know PHP union types are supported since version 8. This might do problems for Laravel 8 applications on PHP 7 and I would consider dropping support of Laravel 8 or alternatively of the union types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants