Skip to content

Commit 1755a30

Browse files
committed
Change the global PHP variable of the Brevo version to a constant on the Configuration class
1 parent ab71297 commit 1755a30

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/Configuration.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@
3838
* @link https://github.com/swagger-api/swagger-codegen
3939
*/
4040

41-
$GLOBALS['version'] = '2.0.0';
4241

4342
class Configuration
4443
{
44+
/**
45+
* Version of the package
46+
*/
47+
const VERSION = "2.0.0";
48+
4549
private static $defaultConfiguration;
4650

4751
/**
@@ -120,7 +124,7 @@ class Configuration
120124
public function __construct()
121125
{
122126
$this->tempFolderPath = sys_get_temp_dir();
123-
$this->userAgent = 'brevo_clientAPI/v' . $GLOBALS['version'] . '/php';
127+
$this->userAgent = 'brevo_clientAPI/v' . self::VERSION . '/php';
124128
}
125129

126130
/**

0 commit comments

Comments
 (0)