matomo-php-tracker
matomo-php-tracker copied to clipboard
118 - Drop support of older php versions
Description:
PR for https://github.com/matomo-org/matomo-php-tracker/issues/118
Hi @lutdev. Just a quick question here — the issue seemed more like a question (are we going to remove legacy PHP support?) rather than an issue or bug. I believe this module can work with PHP versions from say 7.0 to 8.3, so why wouldn't we allow that? It doesn't use modern constructs that wouldn't work on say 7.0, so we may as well just keep the support until we have to drop it for some reason.
I agree with @michalkleiner. The php tracker here at least needs to support the PHP versions Matomo itself supports. Currently that would be PHP 7.2+
@michalkleiner yes, it was a question, for sure. I decided to drop the support 7.0 version because with it we can't use features that 8.1+ provides for us.
It doesn't use modern constructs that wouldn't work on say 7.0, so we may as well just keep the support until we have to drop it for some reason.
I don't want to do a lot of breaking changes in one PR :) That's why I didn't use features from 8.1+
Thanx @sgiehl for the information. It's a very strong argument for me.
I suggest to change the minimal version to 7.2. What do you think about it?
@michalkleiner yes, it was a question, for sure. I decided to drop the support 7.0 version because with it we can't use features that 8.1+ provides for us.
It doesn't use modern constructs that wouldn't work on say 7.0, so we may as well just keep the support until we have to drop it for some reason.
I don't want to do a lot of breaking changes in one PR :) That's why I didn't use features from 8.1+
In that case we can increase the minimum required version in the same PR where we refactor to use modern 8.1+ features. Until then it is not needed to remove the 7.2 support.
I suggest to change the minimal version to 7.2. What do you think about it?
7.2 minimum is fine with me.
@michalkleiner perfect!) What are the next steps? What should I do? Would be great if we update CHANGELOG.md, but what version should we mention?
@michalkleiner perfect!) What are the next steps? What should I do? Would be great if we update CHANGELOG.md, but what version should we mention?
Let's reinstate the constant that you removed even if it's not directly used here, it would be a BC breaking change.
You can also update changelog and I think the changes here should target 3.3.0.
@michalkleiner thank you!) I updated CHANGELOG.md
@sgiehl this is now fine with me. Is it ok to merge this and tag 3.3.0?
@michalkleiner I updated CHANGELOG.MD and added information about dynamic properties
@sgiehl just a friendly reminder about PR :)