Skip to content

Commit ef7f015

Browse files
committed
Added ReturnTypeWillChange for offsetGet() in PHP 8.1
1 parent 78676ec commit ef7f015

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Response/Elasticsearch.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public function offsetExists($offset): bool
195195
*
196196
* @see https://www.php.net/manual/en/class.arrayaccess.php
197197
*/
198+
#[\ReturnTypeWillChange]
198199
public function offsetGet($offset)
199200
{
200201
return $this->asArray()[$offset];

0 commit comments

Comments
 (0)