It looks like Bool become a reserved class name on PHP 7. Therefore it needs rename.........
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | MaxSem | T122686 PHP7 Fatal error: Cannot use 'Bool' as class name as it is reserved in extensions/Elastica/Elastica/lib/Elastica/Query/Bool.php on line 15 | |||
Resolved | Reedy | T122696 Replace Elastica\Query\Bool usage in ttmserver |
Event Timeline
Bool is deprecated now, you can use BoolQuery or BoolFilter if you have PHP7.
Bool will be removed in next releases.
If we've migrated any uses of the standalone bool class, we can hack remove it, but feels a bit icky.
First step is to make sure we've migrated any Bool to BoolQuery and BoolFilter
Then we update to version 3 when it's released
Seems Translate was the only usage of Query\Bool and Filter\Bool
However, we can't bump to Elastica 3.0.0 anyway, till we sort our PHP version requirements out.... As that requires PHP 5.4
@Zoglun Does the library not work because you have uses of Bool in your installed extensions? Or does it not work generally because the class still exists?
We need a bit more help to be able to fix things up :)
Feel free to just paste errors
There was a Null class too in Elastica. But nothing was using that