Laurent Cazanove

Results 200 issues of Laurent Cazanove

The `Results` classes (Contracts) currently have inaccurate PHPDoc return types, often stating they return arrays of arrays when they actually return arrays of Objects (DTOs). Files & Actions: 1. **`src/Contracts/KeysResults.php`**...

breaking-change

The HTTP Client and Contract interface need more specific return types and PHPDoc annotations. Files & Actions: 1. **`src/Http/Client.php`** * `execute(RequestInterface $request, array $headers = [])`: Add return type `:...

breaking-change

Properties in `TasksQueryTrait` are declared without default values or nullable types, leading to potential initialization issues. File: `src/Endpoints/Delegates/TasksQueryTrait.php` Action: 1. **Update Properties:** Initialize properties with `null` and make them nullable....

breaking-change

The `HandlesSettings` trait needs improvements regarding return types and parameter definitions. File: `src/Endpoints/Delegates/HandlesSettings.php` Action: * `getSeparatorTokens()`: Add PHPDoc `@return list`. * `getEmbedders()`: Add PHPDoc defining the embedder array shape. *...

breaking-change

The `HandlesDocuments` trait contains several methods with generic array parameters or missing return types. File: `src/Endpoints/Delegates/HandlesDocuments.php` Action: * `getDocument(...)`: Add PHPDoc `@return array`. * `addDocuments(array $documents, ...)`: Add PHPDoc `@param...

breaking-change

The `Tasks` and `Batches` endpoints have missing return types or unresolved TODOs regarding return values. Files & Actions: 1. **`src/Endpoints/Tasks.php`** * `all(array $query = [])`: Resolve the existing TODO (`//...

breaking-change

The `Keys` endpoint class requires updates to handle array shapes and return types more explicitly. File: `src/Endpoints/Keys.php` Action: * `newInstance(array $attributes)`: Add specific PHPDoc array shape. * `fill(array $attributes)`: Add...

breaking-change

The `Indexes` endpoint class requires updates to Method signatures and PHPDoc to support stricter typing. File: `src/Endpoints/Indexes.php` Action: * `newInstance(array $attributes)`: Add specific PHPDoc array shape. * `fill(array $attributes)`: Add...

breaking-change

Several classes in the `src/Search/` namespace are missing parameter types, return types, or specific PHPDoc array definitions. Files & Actions: 1. **`src/Search/SearchResult.php`** * `__construct(array $body)`: Add PHPDoc `@param array{hits: array,...

breaking-change

This issue addresses missing property type declarations in the main Client class. Currently, properties are assigned in the constructor but are not declared with types, which is necessary for v2.0.0...

breaking-change