File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ public function getOptimizely()
147147 return $ this ->optimizelyClient ;
148148 }
149149
150+ #[\ReturnTypeWillChange]
150151 public function jsonSerialize ()
151152 {
152153 return [
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments