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

Add parameter types to Data ArrayAccess methods

Open Strift opened this issue 4 months ago • 0 comments

The Data class implements ArrayAccess but lacks explicit parameter types in its method signatures.

File: src/Contracts/Data.php

Action: Update the following method signatures to include mixed types:

  1. offsetSet($offset, $value): void -> offsetSet(mixed $offset, mixed $value): void
  2. offsetExists($offset): bool -> offsetExists(mixed $offset): bool
  3. offsetUnset($offset): void -> offsetUnset(mixed $offset): void
  4. offsetGet($offset): mixed -> offsetGet(mixed $offset): mixed

Strift avatar Dec 11 '25 09:12 Strift