-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Hello,
I've encountered an issue with the global variable named "version" in the Brevo PHP package. This global variable is causing conflicts in my project.
To resolve this, I propose changing the variable name to something more specific to the Brevo package. This would help avoid potential conflicts with other packages or user-defined variables.
Here's a proposed patch to address this issue:
--- a/lib/Configuration.php
+++ b/lib/Configuration.php
@@ -38,7 +38,7 @@
* @link https://github.com/swagger-api/swagger-codegen
*/
-$GLOBALS['version'] = '2.0.0';
+$GLOBALS['version-brevo'] = '2.0.0';
class Configuration
{
@@ -120,7 +120,7 @@
public function __construct()
{
$this->tempFolderPath = sys_get_temp_dir();
- $this->userAgent = 'brevo_clientAPI/v' . $GLOBALS['version'] . '/php';
+ $this->userAgent = 'brevo_clientAPI/v' . $GLOBALS['version-brevo'] . '/php';
}This change makes the variable name more specific to the Brevo package, reducing the likelihood of conflicts with other code.
Please review this pull request and let me know if you need any further information or if you'd like me to make any adjustments to this proposed change.
Thank you for your consideration.
Metadata
Metadata
Assignees
Labels
No labels