elasticsearch-php icon indicating copy to clipboard operation
elasticsearch-php copied to clipboard

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

Open cappadaan opened this issue 1 year ago • 19 comments

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?

cappadaan avatar Jul 22 '23 12:07 cappadaan