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

Add types to settings handling methods (HandlesSettings trait)

Open Strift opened this issue 4 months ago • 0 comments

The HandlesSettings trait needs improvements regarding return types and parameter definitions.

File: src/Endpoints/Delegates/HandlesSettings.php

Action:

  • getSeparatorTokens(): Add PHPDoc @return list<non-empty-string>.
  • getEmbedders(): Add PHPDoc defining the embedder array shape.
  • updateEmbedders(array $embedders): Add PHPDoc defining the embedder array shape.

File: src/Endpoints/Delegates/HandlesSystem.php

  • generateTenantToken: Add type hint array|object for $searchRules.
  • swapIndexes: Add PHPDoc @param list<array{string, string}> $indexes.

Strift avatar Dec 11 '25 09:12 Strift