Skip to content

[BUG] PHP 8.1 EloquentHitsIteratorAggregate TypeError #215

Closed
@sfdjo435

Description

@sfdjo435

When using a custom search method: function (Client $client, Search $search) you'll get a TypeError:

Matchish\\ScoutElasticSearch\\ElasticSearch\\EloquentHitsIteratorAggregate::__construct(): Argument #1 ($results) must be of type array, Elastic\\Elasticsearch\\Response\\Elasticsearch given

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions