snowplow / snowplow-php-tracker

Snowplow event tracker for PHP. Add analytics into your PHP apps and scripts
http://snowplowanalytics.com
34 stars 36 forks source link

PHP 8.2 deprecation warning due to dynamic property creation. #123

Closed ldebrouwer closed 1 year ago

ldebrouwer commented 1 year ago

Describe the bug When using version 0.5.0 against PHP 8.2, a deprecation warning is thrown for;

PHP Deprecated:  Creation of dynamic property Snowplow\Tracker\Emitters\SyncEmitter::$debug is deprecated in /var/www/html/vendor/snowplow/snowplow-tracker/src/Emitters/SyncEmitter.php on line 53

To Reproduce Run the latest version of the library against PHP 8.2.

Expected behaviour No deprecation warning to be shown.

Environment (please complete the following information):