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

Fix curl_multi_exec deprecated functionality error #121

Closed edas11 closed 1 year ago

edas11 commented 1 year ago

Describe the bug When calling \Snowplow\Tracker\Tracker::flushEmitters we get a PHP Fatal error Deprecated Functionality: curl_multi_exec(): Passing null to parameter #2 ($still_running) of type int is deprecated in vendor/snowplow/snowplow-tracker/src/Emitters/CurlEmitter.php on line 173. We call flushEmitters in __destruct method of a custom class which sends some order data.

To Reproduce Call \Snowplow\Tracker\Tracker::flushEmitters.

Expected behavior No PHP Fatal errors.

Environment (please complete the following information):

mscwilson commented 1 year ago

Hi @edas11, really sorry that this issue got missed. We're looking into it now.

mscwilson commented 1 year ago

Hopefully this is fixed with version 0.6.1!