Skip to content

Commit 0014c0b

Browse files
vicchiNyholm
authored andcommitted
Fix bug where cached unit test responses aren't serialised (geocoder-php#530)
1 parent aa6bd20 commit 0014c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Geocoder/Tests/CachedResponseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function sendRequest(RequestInterface $request)
4444
$response = $this->delegate->sendRequest($request);
4545

4646
if ($this->useCache) {
47-
file_put_contents($file, $response->getBody()->getContents());
47+
file_put_contents($file, serialize($response->getBody()->getContents()));
4848
}
4949

5050
return $response;

0 commit comments

Comments
 (0)