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

Commit 9fbb484

Browse files
author
TZK-
committed
Fixing usage of $this in static method
1 parent 85d5938 commit 9fbb484

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/RestClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ public function request($method, $url, array $data = [])
5353
return $this->curl->response;
5454
}
5555

56-
protected static function getErrorMessage()
56+
protected static function getErrorMessage(Curl $curl)
5757
{
5858
return sprintf('Error %s - %s: %s',
59-
$this->curl->errorCode,
60-
$this->curl->effectiveUrl,
61-
$this->curl->errorMessage
59+
$curl->errorCode,
60+
$curl->effectiveUrl,
61+
$curl->errorMessage
6262
);
6363
}
6464
}

0 commit comments

Comments
 (0)