Skip to content

Commit

Permalink
fix: update return type of addResult
Browse files Browse the repository at this point in the history
  • Loading branch information
tflori committed Sep 15, 2019
1 parent 4096939 commit a925132
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Testing/EntityManagerMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace ORM\Testing;

use Mockery as m;
use ORM\Entity;
use ORM\EntityFetcher;
use ORM\EntityManager;
Expand Down Expand Up @@ -56,7 +57,7 @@ public function retrieve($class, array $primaryKey)
*
* @param $class
* @param Entity ...$entities
* @return Result
* @return Result|m\MockInterface
* @codeCoverageIgnore proxy method
*/
public function addResult($class, Entity ...$entities)
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/MocksEntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function ($str) {
*
* @param string $class The class of an Entity
* @param Entity ...$entities The entities that will be returned
* @return EntityFetcherMock\Result
* @return EntityFetcherMock\Result|m\MockInterface
* @codeCoverageIgnore trivial code
*/
public function ormAddResult($class, Entity ...$entities)
Expand Down

0 comments on commit a925132

Please sign in to comment.