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

php7 support, now have fatal Compile Error: Cannot use 'Bool' as class name as it is reserved #903

Closed
oncesk opened this issue Aug 3, 2015 · 7 comments

Comments

@oncesk
Copy link

oncesk commented Aug 3, 2015

Hi when i am using elastica with php7 i have fatal error, Compile Error: Cannot use 'Bool' as class name as it is reserved

@im-denisenko
Copy link
Contributor

@oncesk Hello. This is already fixed, and classes that incompatible with php7 were deprecated in #825. Use Elastica\Filter\BoolFilter and Elastica\Query\BoolQuery instead.

@oncesk
Copy link
Author

oncesk commented Aug 3, 2015

thanks, i already use it =)

@Mohammadtrabelsi
Copy link

In any version this bug has fixed please ?

@p365labs
Copy link
Collaborator

p365labs commented Nov 3, 2017

at the moment the strategy is the same : use Elastica\Query\BoolQuery and not Bool.

@Mohammadtrabelsi
Copy link

Can you give me more detail
because the bug is in the vender folder and i c'ant change it:

in vendor/ruflin/elastica/lib/Elastica/Query/Bool.php at line 13:
class Bool extends BoolQuery
{
}

@p365labs
Copy link
Collaborator

p365labs commented Nov 3, 2017

you should use vendor/ruflin/elastica/lib/Elastica/Query/BoolQuery.php

I hope to have understood the problem.

@Mohammadtrabelsi
Copy link

thanks a lot

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

No branches or pull requests

4 participants