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

does not support php 8 #107

Closed
vikas-agent opened this issue Dec 1, 2020 · 6 comments
Closed

does not support php 8 #107

vikas-agent opened this issue Dec 1, 2020 · 6 comments

Comments

@vikas-agent
Copy link

updated my composer.json file to

 "require": {
        "php": "^7.2||^8.0",
}

but when I do composer update. I'm getting the below error in the command line

❯ composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - cviebrock/laravel-elasticsearch[4.2.0, ..., 4.x-dev] require php ^7.2.5 -> your php version (8.0.0) does not satisfy that requirement.
    - Root composer.json requires cviebrock/laravel-elasticsearch ^4.2 -> satisfiable by cviebrock/laravel-elasticsearch[4.2.0, 4.2.1, 4.2.2, 4.x-dev].

Can you have a look at this issue a I really want to update my PHP version to PHP 8.

@cviebrock
Copy link
Contributor

It looks like the official ES client doesn't support PHP 8.0 yet (see elastic/elasticsearch-php#1084 and elastic/elasticsearch-php#1063).

When the official client adds support, I will update this package!

@david-kristin
Copy link

It looks like the client is already supporting PHP 8.0.

@cviebrock
Copy link
Contributor

It will be supported in their 7.11.0 release, but currently that's still unreleased. Version 7.10.0 does not yet support PHP 8:

https://github.com/elastic/elasticsearch-php/blob/v7.10.0/composer.json

@cviebrock cviebrock reopened this Jan 6, 2021
@linslin
Copy link

linslin commented Feb 1, 2021

It was released: https://github.com/elastic/elasticsearch-php/blob/7.11/composer.json

"require": { "php": "^7.1 || ^8.0", "ext-json": ">=1.3.7", "ezimuel/ringphp": "^1.1.2", "psr/log": "~1.0" },

@cviebrock
Copy link
Contributor

@linslin I don't think so. You're looking at a 7.11 branch. I don't see a 7.11 on their releases page.

@webcreation-sk
Copy link

@cviebrock
elastic/elasticsearch-php#1083 (comment)

7.11 is released and support PHP 8

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

5 participants