You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by wa...@apache.org on 2019/12/11 14:39:41 UTC

[dubbo-php-framework] 27/31: update

This is an automated email from the ASF dual-hosted git repository.

wangxin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-php-framework.git

commit 9f5b5eb8804e27940fdac1cf4aabf0d968a0dcd8
Author: wangjinxi <wa...@che001.com>
AuthorDate: Wed Jul 24 16:43:37 2019 +0800

    update
---
 common/protocol/fsof/DubboRequest.php | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/common/protocol/fsof/DubboRequest.php b/common/protocol/fsof/DubboRequest.php
index 8ec2c8e..2d64f8c 100644
--- a/common/protocol/fsof/DubboRequest.php
+++ b/common/protocol/fsof/DubboRequest.php
@@ -15,6 +15,7 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  */
+
 namespace com\fenqile\fsof\common\protocol\fsof;
 
 use com\fenqile\fsof\consumer\Type;
@@ -267,9 +268,14 @@ class DubboRequest
     public function setParams($params)
     {
         $this->params = $params;
-        foreach ($this->params as &$val) {
-            if ($val instanceof Type) {
-                $val = $val->object;
+        foreach ($this->params as &$value) {
+            if ($value instanceof Type) {
+                $value = $value->object;
+            } elseif (is_object($value)) {
+                $value = new \stdClass();
+                foreach ($value as $property => $val) {
+                    $value->$property = $val;
+                }
             }
         }
     }