Skip to content

Commit

Permalink
Add explicit return annotation (#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu authored Feb 23, 2022
1 parent 6594f0e commit 3a19d82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://github.com/ruflin/Elastica/compare/7.1.4...master)
### Backward Compatibility Breaks
### Added
* Added explicit return annotation to `Elastica\Multi\ResultSet::current()` and `Elastica\Multi\ResultSet::offsetGet()` by @franmomu
[2056](https://github.com/ruflin/Elastica/pull/2056)

### Changed
### Deprecated
### Removed
Expand Down
4 changes: 4 additions & 0 deletions src/Multi/ResultSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public function hasError(): bool

/**
* {@inheritdoc}
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current()
Expand Down Expand Up @@ -132,6 +134,8 @@ public function offsetExists($offset): bool

/**
* {@inheritdoc}
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
Expand Down

0 comments on commit 3a19d82

Please sign in to comment.