Skip to content

Drop support for PHP < 7.2#281

Merged
jrfnl merged 3 commits into
mainfrom
feature/drop-support-php-lt-7.2
Jun 20, 2026
Merged

Drop support for PHP < 7.2#281
jrfnl merged 3 commits into
mainfrom
feature/drop-support-php-lt-7.2

Conversation

@jrfnl

@jrfnl jrfnl commented Mar 7, 2026

Copy link
Copy Markdown
Member

Proposed Changes

Drop support for PHP < 7.2

This commit comprehensively drops support for PHP < 7.2.

Includes changing the security workflow to use the Composer audit command instead of the deprecated security checker CLI tool.

Note: this commit does not change the supported PHPUnit versions (other than no longer needing PHPUnit 4.x - 7.x).
This could possibly be done in a follow-up ticket, but to support PHPUnit >= 10, we'll need to find another way to debug failing tests as the test listener implementation we currently use, is no longer supported on PHPUnit >= 10.

Closes #221

Modernize: add constant visibility

For the tests, all visibility modifiers have been set to private.
For the src, all visibility modifiers have been set to public as anything else could be considered a BC-break.

I suggest we open a ticket to change the constant visibility for the class constants in the Plugin class to private in the next major.

Modernize: use ::class

Suggested changelog entry

Removed: Support for PHP < 7.2

jrfnl added 3 commits March 7, 2026 06:08
This commit comprehensively drops support for PHP < 7.2.

Includes changing the security workflow to use the Composer `audit` command instead of the deprecated security checker CLI tool.

Note: this commit does not change the supported PHPUnit versions (other than no longer needing PHPUnit 4.x - 7.x).
This could possibly be done in a follow-up ticket, but to support PHPUnit >= 10, we'll need to find another way to debug failing tests as the test listener implementation we currently use, is no longer supported on PHPUnit >= 10.

Closes 221
For the tests, all visibility modifiers have been set to `private`.
For the `src`, all visibility modifiers have been set to `public` as anything else could be considered a BC-break.

I suggest we open a ticket to change the constant visibility for the class constants in the `Plugin` class to `private` in the next major.
@jrfnl jrfnl added this to the 1.3.0 milestone Mar 7, 2026
@jrfnl jrfnl requested a review from Potherca March 7, 2026 05:11
@jrfnl

jrfnl commented May 6, 2026

Copy link
Copy Markdown
Member Author

@Potherca Now the 1.2.1 release is out of the door, when you have some time, would be great to get this PR and the other two PRs reviewed, merged and released as v1.3.0. 🙏🏻

Note: the build for this PR will not pass as the branch protection settings will need to be updated, but it only makes sense to do this when we're ready to merge this PR (so as not to block other PRs).

@Potherca Potherca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jrfnl jrfnl merged commit 52f47e1 into main Jun 20, 2026
166 of 171 checks passed
@jrfnl jrfnl deleted the feature/drop-support-php-lt-7.2 branch June 20, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Proposal for limiting supported versions

3 participants