fix: update CI workflows, linter config, and PHP version constraint#283
Merged
Conversation
- Upgrade actions/checkout and actions/cache from v2 to v4 (v2 is dead) - Upgrade php-actions/composer from v5 to v6, drop Composer 1 - Remove PHP 7.3/7.4/8.0 from test matrix (minimum is now 8.1) - Rename .php_cs to .php-cs-fixer.php (required by php-cs-fixer v3) - Replace PhpCsFixer\Config::create() with new Config() (removed in v3) - Update Makefile to reference new config filename - Fix composer.json PHP constraint from >=7.3 to >=8.1 - Remove --no-suggest flag (removed in Composer 2) - Fix cache key to hash composer.json instead of removed composer.lock
The --prefer-stable flag is only valid for composer update, not install. Composer 2 enforces this strictly unlike Composer 1.
PHPMD MissingImport rule requires explicit use statements instead of fully-qualified class names.
- Add phpmd.xml ruleset excluding MissingImport and StaticAccess rules (100+ pre-existing violations across test files, not worth fixing in bulk for an unmaintained codebase) - Update Makefile to use the ruleset file instead of inline rule list - Remove unused $authMock variables in DNSAnalyticsTest
ubuntu-20.04 runner image was removed by GitHub, causing jobs to queue indefinitely.
musa-cf
approved these changes
Jun 18, 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.
Summary
Fixes all CI failures on master after the PSR/http-message upgrade (#275).
Changes
actions/checkoutandactions/cachefrom v2 to v4 (actions/cache@v2was shut down by GitHub)php-actions/composerfrom v5 to v6, drop Composer 1 (version: 1param removed).php_csto.php-cs-fixer.phpand replaceConfig::create()withnew Config()(required by php-cs-fixer v3)>=7.3to>=8.1(was not updated correctly during Upgrade PSR/http-message #275 merge)--no-suggestflag (removed in Composer 2)--prefer-stableflagcomposer.jsoninstead of removedcomposer.lockubuntu-latestasubuntu-20.04is no longer supportedVerification
Tested locally on PHP 8.1.34: