We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53f1128 commit e260c6eCopy full SHA for e260c6e
src/Recommendations/RecommendationsResponse.php
@@ -13,8 +13,8 @@ class RecommendationsResponse extends Response
13
public function __construct(string $responseRaw)
14
{
15
parent::__construct($responseRaw);
16
- foreach ($this->getBody() as $key => $recommendation) {
17
- $this->recommendations[$recommendation['type']][] = $recommendation['document'];
+ foreach ($this->getBody() as $recommendation) {
+ $this->recommendations[$recommendation['type']][] = $recommendation;
18
}
19
20
0 commit comments