diff --git a/Client.php b/Client.php index 1ec6cf2..5109b78 100644 --- a/Client.php +++ b/Client.php @@ -23,9 +23,9 @@ public function __construct($server, $user, $pass, $timeout = 15) { } /** @inheritdoc */ - public function query() { + public function query(...$args) { $ok = call_user_func_array('parent::query', func_get_args()); - $code = $this->getErrorCode(); + $code = @$this->getErrorCode(); if($code === -32300) $code = -1 * $this->status; // use http status on transport errors if(!$ok) { // when a file context is given include it in the exception