Skip to content

Typehint: Index instead of Indexes #760

@tacman

Description

@tacman

Description

It has always felt unnatural for the index to be called Indexes.

We could deprecate the plural in version 1 and have version 2 return just Index.

OLD:

    public function getIndex(string $indexCode): Indexes
    {
        return $this->client->index($indexCode);
    }

NEW:

    public function getIndex(string $indexCode): Index
    {
        return $this->client->index($indexCode);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changeThe related changes are breaking for the users

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions