Skip to content

Commit 999bacf

Browse files
committed
Code review
1 parent a5b98f2 commit 999bacf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ObjectStore/v1/Models/Object.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ public function retrieve()
115115

116116
public function download(array $data = []): StreamInterface
117117
{
118-
$response = $this->execute($this->api->getObject(), $data + ['containerName' => $this->containerName]);
118+
$data += ['name' => $this->name, 'containerName' => $this->containerName];
119+
120+
/** @var ResponseInterface $response */
121+
$response = $this->execute($this->api->getObject(), $data);
119122
$this->populateHeaders($response);
123+
120124
return $response->getBody();
121125
}
122126

123-
124127
/**
125128
* {@inheritdoc}
126129
*/

0 commit comments

Comments
 (0)