matomo-php-tracker
matomo-php-tracker copied to clipboard
129 - Creation of dynamic property MatomoTracker::$currentTs is deprecated
Description:
I created properties to fix the problem with the dynamic properties. All default values I took from the __construct()
Issue: https://github.com/matomo-org/matomo-php-tracker/issues/129
I would be happy to update CHANGELOG but have no idea how my updates should look like.
Thanks for starting the PR @lutdev. Is there a reason to have the properties public? Are they used outside of the class? I'd imagine they can be private, protected at most. What do you think?
@michalkleiner you are welcome :) The main reason to make not breaking changes. If the properties will be public, developers still can use them as they use them now. Later we can try to make them private/protected step by step.
@michalkleiner just a friendly reminder about PR :)