From 9eb6f43b458e485f331b9d5f0c338806d01c4422 Mon Sep 17 00:00:00 2001 From: David Binaud Date: Mon, 31 Jul 2023 15:51:36 +0200 Subject: [PATCH 1/2] :recycle: Passage de l'autoloader en PSR-0 --- src/autoload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autoload.php b/src/autoload.php index 8fb9d73..89bf782 100644 --- a/src/autoload.php +++ b/src/autoload.php @@ -36,7 +36,7 @@ define('ESENDEX_HOME', dirname(__FILE__)); -class AutoLoader +class AutoLoad { const SPLIT_DIR = DIRECTORY_SEPARATOR; const SPLIT_NS = '\\'; @@ -55,4 +55,4 @@ public static function load($class) } } -\spl_autoload_register(array('\Esendex\AutoLoader', 'load')); +\spl_autoload_register(array('\Esendex\AutoLoad', 'load')); From c115723617b98f17977f32ca352fa8d4765855e5 Mon Sep 17 00:00:00 2001 From: David Binaud Date: Mon, 31 Jul 2023 16:23:44 +0200 Subject: [PATCH 2/2] :recycle: :bug: Fix deprecated string interpolation --- src/Esendex/Http/HttpClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Esendex/Http/HttpClient.php b/src/Esendex/Http/HttpClient.php index c8a47b6..26c20e8 100644 --- a/src/Esendex/Http/HttpClient.php +++ b/src/Esendex/Http/HttpClient.php @@ -127,7 +127,7 @@ private function request($url, $authentication, $method, $data = null, $contentT if (strlen($data) == 0) { $httpHeaders[] = 'Content-Length: 0'; } - $httpHeaders[] = "Content-Type: ${contentType}; charset=utf-8"; + $httpHeaders[] = "Content-Type: {$contentType}; charset=utf-8"; } \curl_setopt($curlHandle, CURLOPT_HTTPHEADER, $httpHeaders);