Skip to content

Commit

Permalink
Fix Response\Elasticsearch::offsetGet() return type declaration
Browse files Browse the repository at this point in the history
Fixes #1384
  • Loading branch information
AnnaNtagiou committed Nov 30, 2023
1 parent 0b30cc0 commit 146e37c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Response/Elasticsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ public function offsetExists($offset): bool
* ArrayAccess interface
*
* @see https://www.php.net/manual/en/class.arrayaccess.php
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
Expand All @@ -222,4 +224,4 @@ public function offsetUnset($offset): void
{
throw new ArrayAccessException('The array is reading only');
}
}
}

0 comments on commit 146e37c

Please sign in to comment.