matomo-php-tracker
matomo-php-tracker copied to clipboard
Creation of dynamic property MatomoTracker::$currentTs is deprecated
There are some deprecations in latest version of tracker:
Creation of dynamic property MatomoTracker::$currentTs is deprecated
Also other properties are affected:
- MatomoTracker::$forcedVisitorId
- MatomoTracker::$requestTimeout
- MatomoTracker::$configCookiePath
- MatomoTracker::$visitCount
- MatomoTracker::$ecommerceLastOrderTimestamp
- MatomoTracker::$doBulkRequests
- MatomoTracker::$incomingTrackerCookies
$this->currentTs = time();
$this->createTs = $this->currentTs;
$this->visitCount = 0;
$this->currentVisitTs = false;
$this->lastVisitTs = false;
$this->ecommerceLastOrderTimestamp = false;
Thanks for raising the issue @dkossako, we will look into adding class variables for the dynamic properties.
Can you confirm what version of PHP you're running the tracker on? Is it 8.2?
8.3.3
@sgiehl you have merged my PR, can we tag the new version and close this issue?)
@lutdev let's do it together with #132.