matomo-php-tracker icon indicating copy to clipboard operation
matomo-php-tracker copied to clipboard

118 - Drop support of older php versions

Open lutdev opened this issue 1 year ago • 4 comments

Description:

PR for https://github.com/matomo-org/matomo-php-tracker/issues/118

lutdev avatar May 01 '24 21:05 lutdev

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.

michalkleiner avatar May 01 '24 22:05 michalkleiner

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+

sgiehl avatar May 02 '24 08:05 sgiehl

@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?

lutdev avatar May 02 '24 18:05 lutdev

@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 avatar May 03 '24 00:05 michalkleiner

@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?

lutdev avatar May 06 '24 20:05 lutdev

@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 avatar May 08 '24 00:05 michalkleiner

@michalkleiner thank you!) I updated CHANGELOG.md

lutdev avatar May 08 '24 21:05 lutdev

@sgiehl this is now fine with me. Is it ok to merge this and tag 3.3.0?

michalkleiner avatar May 08 '24 22:05 michalkleiner

@michalkleiner I updated CHANGELOG.MD and added information about dynamic properties

lutdev avatar May 13 '24 20:05 lutdev

@sgiehl just a friendly reminder about PR :)

lutdev avatar May 15 '24 19:05 lutdev