Skip to content

Commit 95cea9b

Browse files
adrimsohailhussain
andauthored
HTTPProjectConfigManager: datafile should be a string (#243)
By using `->getContents()` the actual string is returned instead of a Guzzle Stream object. The interface uses string everywhere. Co-authored-by: Mirza Sohail Hussain <[email protected]>
1 parent 5580a9a commit 95cea9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Optimizely/ProjectConfigManager/HTTPProjectConfigManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ protected function fetchDatafile()
211211
$this->_lastModifiedSince = $response->getHeader(ProjectConfigManagerConstants::LAST_MODIFIED)[0];
212212
}
213213

214-
$datafile = $response->getBody();
214+
$datafile = $response->getBody()->getContents();
215215

216216
if ($this->handleResponse($datafile) === true) {
217217
return $datafile;

0 commit comments

Comments
 (0)