Skip to content

Commit e942da3

Browse files
committed
Declare methods as static to suppress deprecation warning
1 parent 3d8d84e commit e942da3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/ConversionClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class ConversionClient
66
{
7-
const VERSION = '1.0.1';
7+
const VERSION = '1.0.2';
88

99
public static $userAgent = 'conversiontools-php';
1010

src/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Request
66
{
7-
private function initialize($method, $url, $headers, $data = NULL)
7+
private static function initialize($method, $url, $headers, $data = NULL)
88
{
99
$ch = curl_init();
1010
curl_setopt($ch, CURLOPT_URL, $url);
@@ -21,7 +21,7 @@ private function initialize($method, $url, $headers, $data = NULL)
2121
return $ch;
2222
}
2323

24-
private function handleErrorCode($ch)
24+
private static function handleErrorCode($ch)
2525
{
2626
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
2727
$message = curl_error($ch);

0 commit comments

Comments
 (0)