-
Notifications
You must be signed in to change notification settings - Fork 730
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
[PHP 8.0] Deprecate Match query class and introduce MatchQuery #1799
Conversation
5a11896
to
81cdf65
Compare
*/ | ||
class Match extends AbstractQuery | ||
class Match extends MatchQuery |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@deguif This is great. Thanks! |
#### Done in this PR: - [x] Update composer constraint to allow PHP 8.0. - [x] Update travis configuration in order to run tests on PHP 8.0 (nightly). - [x] Update changelog #### Done in previous PRs: - [x] Deprecate `Elastica\Query\Match` class and add a new `Elastica\Query\MatchQuery` class as match is now a reserved keyword. [#1799] - [x] Update phpunit version in order to be compatible with PHP 8.0. [#1811] - [x] Bump `aws/aws-sdk-php` package version to fix a bug with PHP 8.0. [#1798] #### Done in external PRs: - [x] Wait for `aws/aws-sdk-php` to be compatible with PHP 8. [aws/aws-sdk-php#2079] - [ ] Wait for `elasticsearch/elasticsearch` to be compatible with PHP 8.0 and remove `--ignore-platform-reqs` composer option.
Is there any time table for a release containing this fix? I'm starting to run our tests again PHP8 and hit the "parse error" as outlined. Although I should be able to use master, it actually doesn't work for me though I think it should => any ideas?
I do run this with PHP 7.4.12 but according to this in master, it should work 🤔 Line 15 in 41ab9bf
Thank you |
PS: got it working by adding |
The behaviour you described is weird, as our CI jobs use several PHP 7.x versions and there are no issues like the one you encountered. I think we should be able to publish a new |
Not sure the best place to ask this (let me know if you want me to file an issue instead).. Is there any chance of getting this backported to the 6.x branch? Or some version also adding the MatchQuery class/alias also into 6.x so it can be used instead? While presumably Elastica 6.x might not support PHP 8.0 (but 6.x is currently maintained based on the Readme), where a project can/will support multiple versions of elastica/elasticsearch php, being able to have the same class available in all versions would be really useful Thanks! |
@reedy It could be interesting to open a dedicated issue/MR for that |
Will do! |
See #1793