Skip to content

Commit fd06052

Browse files
Michael Babcockclaude
andcommitted
chore: lower minimum PHP to 8.2
PHPCompatibility reports zero 8.2 (or even 8.0) incompatibilities in the codebase, so 8.3 was only a policy floor. Lower Requires PHP to 8.2 in the plugin header and readme, set the PHPCompatibility testVersion to 8.2-, update CONTRIBUTING, and run CI on a 8.2 + 8.3 matrix so the new floor is enforced. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 182aa91 commit fd06052

5 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php-version: [ '8.2', '8.3' ]
1115
steps:
1216
- uses: actions/checkout@v4
1317

1418
- name: Set up PHP
1519
uses: shivammathur/setup-php@v2
1620
with:
17-
php-version: '8.3'
21+
php-version: ${{ matrix.php-version }}
1822
tools: composer
1923
coverage: none
2024

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ install, so it is not part of CI. Run it locally before a release:
4040
- Where a security sniff flags a known-safe pattern (pre-escaped HTML,
4141
trusted table names, theme-provided markup), use a narrowly-scoped
4242
`phpcs:ignore` with a `--` reason rather than disabling the sniff globally.
43-
- Minimum PHP is 8.3; `PHPCompatibilityWP` enforces this.
43+
- Minimum PHP is 8.2; `PHPCompatibilityWP` enforces this.

outpost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Version: 1.1.0
77
* Requires at least: 7.0
88
* Tested up to: 7.0
9-
* Requires PHP: 8.3
9+
* Requires PHP: 8.2
1010
* Author: Community Access
1111
* Author URI: https://community-access.org
1212
* License: GPL-2.0-or-later

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</rule>
3232

3333
<!-- PHP version floor (matches Requires PHP). -->
34-
<config name="testVersion" value="8.3-"/>
34+
<config name="testVersion" value="8.2-"/>
3535
<rule ref="PHPCompatibilityWP"/>
3636

3737
<!-- Plugin text domain. -->

readme.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: communityaccess
33
Tags: mastodon, fediverse, email digest, accessibility, hashtag
44
Requires at least: 7.0
55
Tested up to: 7.0
6-
Requires PHP: 8.3
6+
Requires PHP: 8.2
77
Stable tag: 1.1.0
88
License: GPL-2.0-or-later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -74,7 +74,7 @@ Posts are fetched from the Mastodon API and cached for 60 minutes by default
7474
and unique element IDs for repeated feeds/forms.
7575
* Performance: paginated the subscribers admin screen; explicit option autoload.
7676
* Tooling: PHPCS (WordPress-Extra) + PHPCompatibility, CI, and a contributing
77-
guide. Minimum PHP is now 8.3.
77+
guide. Minimum PHP is now 8.2.
7878

7979
= 1.0.0 =
8080
* Initial release: Mastodon hashtag feeds, subscribe forms, daily email digests,
@@ -83,4 +83,4 @@ Posts are fetched from the Mastodon API and cached for 60 minutes by default
8383
== Upgrade Notice ==
8484

8585
= 1.1.0 =
86-
Adds account feeds and hardens security and accessibility. Requires PHP 8.3.
86+
Adds account feeds and hardens security and accessibility. Requires PHP 8.2.

0 commit comments

Comments
 (0)