Skip to content

Commit 1d63525

Browse files
Update Request.php
1 parent 2aa799c commit 1d63525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function has(string $name): bool
117117
public function merge(array ...$array): self
118118
{
119119
$this->_parameters = array_merge($this->_parameters, ...$array);
120-
$this->_objParameters = (object)json_decode(json_encode($this->_parameters), false);
120+
!empty($this->_parameters) && $this->_objParameters = (object)json_decode(json_encode($this->_parameters), false);
121121

122122
return $this;
123123
}

0 commit comments

Comments
 (0)