brevo-php icon indicating copy to clipboard operation
brevo-php copied to clipboard

Warning: Undefined global variable $version

Open jasperpoppe opened this issue 1 year ago • 1 comments

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?

jasperpoppe avatar Oct 09 '24 09:10 jasperpoppe

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.

dereuromark avatar Nov 07 '24 23:11 dereuromark