Add types to settings handling methods (HandlesSettings trait)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start by reading src/Endpoints/Delegates/HandlesSettings.php and src/Endpoints/Delegates/HandlesSystem.php, focusing on the named methods and their existing signatures or PHPDoc. Add the requested return, parameter, array-shape, and union type definitions, then verify that each declaration matches the methods' current inputs and outputs.
Written by the indexing model from the issue text.
Description
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 hintarray|objectfor$searchRules.swapIndexes: Add PHPDoc@param list<array{string, string}> $indexes.
- Dominant language
- PHP
- Stars
- 757
- Forks
- 125
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from meilisearch/meilisearch-php
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
meilisearch/meilisearch-php#943 ·
-
breaking-change
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
meilisearch/meilisearch-php#843 ·
-
enhancement good first issue
Difficulty 3/5 1-2 days Newbie friendliness 72/100
meilisearch/meilisearch-php#935 ·
-
enhancement good first issue
Difficulty 4/5 3-5 days Newbie friendliness 55/100
meilisearch/meilisearch-php#924 ·
-
enhancement good first issue
Difficulty 3/5 1-2 days Newbie friendliness 72/100
meilisearch/meilisearch-php#921 ·
All issues in meilisearch/meilisearch-php
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·