diff --git a/Message/RequestAbstract.php b/Message/RequestAbstract.php index 2ba5f80ec..04b2c8499 100755 --- a/Message/RequestAbstract.php +++ b/Message/RequestAbstract.php @@ -324,7 +324,6 @@ abstract class RequestAbstract implements MessageInterface return isset($this->data[$key]) && $this->data[$key] !== '' - && $this->data[$key] !== 0 && $this->data[$key] !== null; } @@ -353,6 +352,11 @@ abstract class RequestAbstract implements MessageInterface return false; } + public function fromData(array $data) : void + { + $this->data = $data; + } + /** * Lock request for further manipulations. *