brevo-php
brevo-php copied to clipboard
Warning: Undefined global variable $version
As of PHP 8.1.0, write access to the entire $GLOBALS array is no longer supported:
https://www.php.net/manual/en/reserved.variables.globals.php
Even if $GLOBALS['version'] = 'version_number'; is set in the Configuration class, we catched this ErrorException: Warning: Undefined global variable $version.
https://github.com/getbrevo/brevo-php/blob/main/lib/Configuration.php#L41
Because this variable is called in the constructor, we got this warning constantly.
Is it possible to get rid of the $GLOBALS['version'] variable?
Is this repo still maintained? This is the offical one for brevo.com right? I find it weird that this is not even yet on 8.1 properly then.