Skip to content

Add types to document handling methods (HandlesDocuments trait) #843

@Strift

Description

@Strift

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<string, mixed>.
  • addDocuments(array $documents, ...): Add PHPDoc @param list<array<string, mixed>> $documents.
  • updateDocuments(array $documents, ...): Add PHPDoc @param list<array<string, mixed>> $documents.
  • deleteDocuments(array $options): Add PHPDoc for expected $options shape.
  • addDocumentsInBatches: Add specific array type PHPDoc.
  • updateDocumentsInBatches: Add specific array type PHPDoc.

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