Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down