We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aa799c commit 1d63525Copy full SHA for 1d63525
src/Message/Request.php
@@ -117,7 +117,7 @@ public function has(string $name): bool
117
public function merge(array ...$array): self
118
{
119
$this->_parameters = array_merge($this->_parameters, ...$array);
120
- $this->_objParameters = (object)json_decode(json_encode($this->_parameters), false);
+ !empty($this->_parameters) && $this->_objParameters = (object)json_decode(json_encode($this->_parameters), false);
121
122
return $this;
123
}
0 commit comments