feat: Bump minimum PHP version to 8.2#151
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the plugin/tooling metadata to reflect a new minimum supported PHP version (8.2), aligning CI and static analysis with that baseline as a precursor to PHPUnit adoption and future dependency upgrades.
Changes:
- Bump “Requires PHP” to 8.2 across plugin readmes and the plugin header.
- Update dev tooling baselines (PHPStan min version, PHPCS compatibility testVersion, Composer platform PHP).
- Update PHPUnit configuration and CI matrix to run only on PHP 8.2+.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| readme.txt | Updates WordPress plugin readme “Requires PHP” to 8.2. |
| README.md | Updates documentation requirements table to PHP >= 8.2. |
| onesearch.php | Updates plugin header “Requires PHP” to 8.2. |
| composer.json | Updates Composer platform PHP to 8.2 for dependency resolution. |
| composer.lock | Regenerates lockfile for the updated platform/dependency set (incl. newer PHPUnit stack). |
| phpstan.neon.dist | Raises PHPStan phpVersion.min to 80200 (PHP 8.2). |
| .phpcs.xml.dist | Raises PHPCS PHPCompatibility testVersion baseline to 8.2-. |
| phpunit.xml.dist | Updates PHPUnit config to the v11.5 schema and new settings/paths. |
| .github/workflows/ci.yml | Removes PHP 8.0/8.1 from the PHPUnit job matrix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This was referenced Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Bumps the minimum PHP version to 8.2
Important
This PR is based on #146 which should be merged first.
Technical Details
Precursor to implementing PHPUnit tests and moving to v4.0+ of the Algolia library.
Checklist
Screenshots
To-do
Fixes/Covers issue
Fixes #