Skip to content

Drop support of php versions < 7.2 - #132

Merged
sgiehl merged 9 commits into
matomo-org:masterfrom
lutdev:118-php-version
May 17, 2024
Merged

Drop support of php versions < 7.2#132
sgiehl merged 9 commits into
matomo-org:masterfrom
lutdev:118-php-version

Conversation

@lutdev

@lutdev lutdev commented May 1, 2024

Copy link
Copy Markdown
Contributor

Description:

PR for #118

Comment thread MatomoTracker.php
@michalkleiner

Copy link
Copy Markdown
Contributor

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.

@sgiehl

sgiehl commented May 2, 2024

Copy link
Copy Markdown
Member

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+

@lutdev

lutdev commented May 2, 2024

Copy link
Copy Markdown
Contributor Author

@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

Copy link
Copy Markdown
Contributor

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

@lutdev

lutdev commented May 6, 2024

Copy link
Copy Markdown
Contributor Author

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

Comment thread composer.json
@michalkleiner

Copy link
Copy Markdown
Contributor

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

@lutdev

lutdev commented May 8, 2024

Copy link
Copy Markdown
Contributor Author

@michalkleiner thank you!) I updated CHANGELOG.md

Comment thread CHANGELOG.md Outdated
@michalkleiner

Copy link
Copy Markdown
Contributor

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

@lutdev

lutdev commented May 13, 2024

Copy link
Copy Markdown
Contributor Author

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

@lutdev

lutdev commented May 15, 2024

Copy link
Copy Markdown
Contributor Author

@sgiehl just a friendly reminder about PR :)

@sgiehl
sgiehl merged commit 6dd138e into matomo-org:master May 17, 2024
@lutdev
lutdev deleted the 118-php-version branch May 21, 2024 08:20
@sgiehl sgiehl linked an issue May 28, 2024 that may be closed by this pull request
@sgiehl sgiehl changed the title 118 - Drop support of older php versions Drop support of php versions < 7.2 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop support of older php versions?

3 participants