Skip to content

Commit 1dabab4

Browse files
Merge branch 'master' into pr-240
2 parents 850f123 + 7fc037d commit 1dabab4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Optimizely/OptimizelyUserContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public function getOptimizely()
147147
return $this->optimizelyClient;
148148
}
149149

150+
#[\ReturnTypeWillChange]
150151
public function jsonSerialize()
151152
{
152153
return [

src/Optimizely/ProjectConfigManager/HTTPProjectConfigManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright 2019-2020, Optimizely Inc and Contributors
3+
* Copyright 2019-2020, 2022 Optimizely Inc and Contributors
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -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)