Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Fixing usage of $this in static method
Browse files Browse the repository at this point in the history
  • Loading branch information
TZK- committed Apr 8, 2017
1 parent 85d5938 commit 9fbb484
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public function request($method, $url, array $data = [])
return $this->curl->response;
}

protected static function getErrorMessage()
protected static function getErrorMessage(Curl $curl)
{
return sprintf('Error %s - %s: %s',
$this->curl->errorCode,
$this->curl->effectiveUrl,
$this->curl->errorMessage
$curl->errorCode,
$curl->effectiveUrl,
$curl->errorMessage
);
}
}

0 comments on commit 9fbb484

Please sign in to comment.