Skip to content

Commit 17e36ac

Browse files
authored
Merge pull request #1655 from deguif/type-hint-hybrid-result-signatures
Add type-hints on signatures of hybrid-result methods
2 parents 08369a9 + a8b58b5 commit 17e36ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG-6.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ in 6.0 versions.
1212
* Dropped Elasticsearch 5 and 6 support.
1313
* Dropped PHP 7.1 support.
1414
* Removed `FOS\ElasticaBundle\Exception\InvalidArgumentTypeException`
15+
* [BC break] Signature of method `FOS\ElasticaBundle\HybridResult::getResult()` was changed.
1516
* [BC break] Signature of method `FOS\ElasticaBundle\Finder\FinderInterface::find()` was changed.
1617
* [BC break] Signature of method `FOS\ElasticaBundle\Persister\ObjectPersisterInterface::handlesObject()` was changed.
1718
* [BC break] Signature of method `FOS\ElasticaBundle\Provider\PagerProviderInterface::provider()` was changed.

src/HybridResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getTransformed()
2929
return $this->transformed;
3030
}
3131

32-
public function getResult()
32+
public function getResult(): Result
3333
{
3434
return $this->result;
3535
}

0 commit comments

Comments
 (0)