Skip to content

Commit 220fa79

Browse files
authored
Merge pull request #150 from a-brazhnikov/fix-error-parsing-json
fix: Error parsing JSON @1:9: No such field
2 parents bf1c99b + a72ee07 commit 220fa79

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.15.1
2+
* fixed Error parsing JSON @1:9: No such field
3+
14
## 1.15.0
25
* added `$grpc_config` array for customize gRPC behavior
36

src/Traits/RequestTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ protected function processResponse($service, $method, $response, $resultClass)
238238
$this->logger()->debug('YDB: Received API response [' . $resultClass . '].', json_decode($jsonResult, true));
239239

240240
$result = new $resultClass;
241-
$result->mergeFromJsonString($jsonResult);
241+
$result->mergeFromJsonString($jsonResult, true);
242242
}
243243
}
244244

0 commit comments

Comments
 (0)