File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function create($doc)
92
92
if ($ response ->getStatusCode () == 201 && $ response_data = json_decode ($ response ->getBody (), true )) {
93
93
$ id = $ response_data ['id ' ];
94
94
// all good. Let's fetch the doc and return it
95
- $ fetched_data = json_decode ($ this ->client ->get ('/ ' . $ this ->db_name . '/ ' . $ id )->getBody ());
95
+ $ fetched_data = json_decode ($ this ->client ->get ('/ ' . $ this ->db_name . '/ ' . $ id )->getBody (), true );
96
96
return new Document ($ this ->client , $ this ->db_name , $ fetched_data );
97
97
}
98
98
} catch (\GuzzleHttp \Exception \ConnectException $ e ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ class Document
25
25
* @param string $db_name The database this document is in
26
26
* @param array $data Representation of the document
27
27
*/
28
- */
29
28
30
29
public function __construct (\GuzzleHttp \ClientInterface $ client , string $ db_name , array $ data )
31
30
{
You can’t perform that action at this time.
0 commit comments