Skip to content

Commit

Permalink
fix anontation iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
ginfarma committed Dec 11, 2020
1 parent 89b92df commit 0298afb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/ImgFinder/Repository/PexelsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ private function doHttpRequest(string $url): iterable
}


/**
* @param iterable|array $data
* @param string $orientation
* @return ResponseInterface
*/
private function createResponse(iterable $data, string $orientation): ResponseInterface
{
if (empty($data)) {
Expand Down
2 changes: 1 addition & 1 deletion src/ImgFinder/Repository/UnsplashRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function doHttpRequest(string $url): iterable


/**
* @param iterable $data
* @param iterable|array $data
* @return ResponseInterface
*/
private function createResponse(iterable $data): ResponseInterface
Expand Down

0 comments on commit 0298afb

Please sign in to comment.