Skip to content

Declaration of Elastic\Elasticsearch\Response\Elasticsearch::withStatus must be compatible #1342

@cappadaan

Description

@cappadaan

Out of nowhere we suddenly get this fatal error popping up.
It looks random, after running the same script again, it works fine.

Declaration of Elastic\Elasticsearch\Response\Elasticsearch::withStatus(int $code, string $reasonPhrase = ''): Psr\Http\Message\ResponseInterface must be compatible with Psr\Http\Message\ResponseInterface::withStatus($code, $reasonPhrase = '')

We do not use this method (withStatus) in our code.

  • Operating System: Almalinux 9.2
  • PHP Version: 8.2
  • ES-PHP client version: 8.8.1
  • Elasticsearch version: 8.6

Any ideas how to debug this? Or where to start? Could this be a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions