Skip to content

PaginatedResponse does not have access to $this->client #30

Closed
@pierrexp9

Description

@pierrexp9

Hello MacFJA,
(I'm using version 2.1.0)

I get a

Call to a member function execute() on null
at vendor/macfja/redisearch/src/Redis/Response/PaginatedResponse.php:145

It appears that $this->client is null.

When I set the setLimit to a high enough value, I dont get this error anymore.

Another workaround is to manually set the client like this

 /** @var PaginatedResponse $results */
$results = $client->execute($search);
$results->setClient($client);

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions