Skip to content

Commit e260c6e

Browse files
committed
NTR - fix tests
1 parent 53f1128 commit e260c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Recommendations/RecommendationsResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class RecommendationsResponse extends Response
1313
public function __construct(string $responseRaw)
1414
{
1515
parent::__construct($responseRaw);
16-
foreach ($this->getBody() as $key => $recommendation) {
17-
$this->recommendations[$recommendation['type']][] = $recommendation['document'];
16+
foreach ($this->getBody() as $recommendation) {
17+
$this->recommendations[$recommendation['type']][] = $recommendation;
1818
}
1919
}
2020

0 commit comments

Comments
 (0)