From 7da8187d9c5c48e00898414835f95090546052e3 Mon Sep 17 00:00:00 2001 From: Damien TUPINIER Date: Fri, 22 Nov 2024 17:54:23 +0100 Subject: [PATCH] Change the global PHP variable of the Brevo version to a constant on the Configuration class --- lib/Configuration.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Configuration.php b/lib/Configuration.php index 802870f..923748b 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -38,7 +38,6 @@ * @link https://github.com/swagger-api/swagger-codegen */ -$GLOBALS['version'] = '2.0.0'; class Configuration { @@ -120,7 +119,7 @@ class Configuration public function __construct() { $this->tempFolderPath = sys_get_temp_dir(); - $this->userAgent = 'brevo_clientAPI/v' . $GLOBALS['version'] . '/php'; + $this->userAgent = 'brevo_clientAPI/v2.0.0/php'; } /**