Skip to content

Run CI from PHP 7.4, the minimum the plugin declares - #209

Merged
jdevalk merged 1 commit into
developfrom
ci/php-7.4
Nov 26, 2026
Merged

jdevalk merged 1 commit into
developfrom
ci/php-7.4

Conversation

@jdevalk

@jdevalk jdevalk commented Nov 26, 2026

Copy link
Copy Markdown
Member

The plugin header and readme.txt declare PHP 7.4 as the minimum, but CI started at PHP 8.2 and composer.json required 8.2, so 7.4 to 8.1 were never exercised.

  • Lint: the matrix now runs 7.4 through 8.5. Because the locked dev tools need a newer PHP, dependencies are installed on 8.3 first and the lint then runs on the matrix version (the same pattern as brand-assets).
  • Tests: a PHP 7.4 / WP 6.6 leg is added. The job now removes the code style and static analysis tools before installing, since they do not install on older PHP versions and the tests do not use them.
  • composer.json: "php": ">=8.2" becomes ">=7.4" to match the header. composer.lock only changes its hash and platform entry.

Locally, every PHP file passes php -l on PHP 7.4.33.

🤖 Generated with Claude Code

The plugin header and readme say PHP 7.4, but CI started at 8.2 and
composer.json required 8.2. Lint now runs on 7.4 through 8.5, the tests
get a PHP 7.4 leg, and composer.json requires 7.4 to match the header.

The dev tools still need a newer PHP, so the lint job installs them on
8.3 first and the test job leaves out the tools it does not use.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Test on Playground
Test this pull request on the Playground
or download the zip

@github-actions

Copy link
Copy Markdown

🔍 WordPress Plugin Check Report

⚠️ Status: Passed with warnings

📊 Report

🎯 Total Issues ❌ Errors ⚠️ Warnings
1 0 1

⚠️ Warnings (1)

📁 comment-hacks.php (1 warning)
📍 Line 🔖 Check 💬 Message
0 textdomain_mismatch The "Text Domain" header in the plugin file does not match the slug. Found "yoast-comment-hacks", expected "comment-hacks".

🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@jdevalk
jdevalk merged commit cf296e7 into develop Nov 26, 2026
20 checks passed
@jdevalk
jdevalk deleted the ci/php-7.4 branch November 26, 2026 15:25
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.

1 participant