-
-
Notifications
You must be signed in to change notification settings - Fork 2
Added PHP 8.5 to CI. #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Added PHP 8.5 to CI. #177
Conversation
📝 WalkthroughWalkthroughAdds PHP 8.5 to the GitHub Actions PHP test matrix and removes PHP CodeSniffer-related dev dependencies, plugin permission, and related lint scripts from composer.json; no other logic or exported entities were changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🪛 GitHub Actions: Test PHPcomposer.json[error] 1-1: dealerdirect/phpcodesniffer-composer-installer contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe. 🔇 Additional comments (3)
Comment |
@coderabbitai |
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed:
Length of output: 288 🏁 Script executed:
Length of output: 11046 🏁 Script executed:
Length of output: 11 🏁 Script executed:
Length of output: 427 🏁 Script executed:
Length of output: 1665 🌐 Web query:
💡 Result: Short answer: Yes — recent drupal/coder releases are compatible with PHP 8.5. The current stable 8.3.x release series (e.g. 8.3.30) declares "php: >=7.2" in its composer metadata (no upper bound), so Composer will allow PHP 8.5. [1][2] Notes:
Sources:
🌐 Web query:
💡 Result: Short answer: Not yet officially — as of Sep 30, 2025 PHP 8.5 is still a development/RC branch (GA scheduled Nov 20, 2025) and PHPStan has not published a “ready for PHP 8.5” announcement. PHPStan historically adds support after PHP stubs / nikic/php-parser support land, and the project has said it would add new‑minor PHP support in followup releases (e.g. PHP 8.4 was targeted after 2.0). [1][2][3] What to do now
Sources
🌐 Web query:
💡 Result: Short answer: Yes — Rector has PHP 8.5-specific rules and sets. Use a recent Rector 2.x release (which added many Php85 rules) and enable the PHP sets in your rector config (or set the project PHP version in composer.json so Rector picks it up). [1][2] How to use:
Sources:
References: 🌐 Web query:
💡 Result: Yes — current ergebnis/composer-normalize releases declare support for PHP 8.5 (requires: ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0). [1] Source: Packagist package page for ergebnis/composer-normalize. [1] Task: Conditionally remove PHP 8.5 incompatible packages in GitHub ActionsBased on the web search results:
Plan:
⏳ Preparing changes... |
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed:
Length of output: 2127 🏁 Script executed:
Length of output: 300 🏁 Script executed:
Length of output: 11046 🏁 Script executed:
Length of output: 1677 🌐 Web query:
💡 Result: Short answer: drupal/coder itself does not forbid PHP 8.5 (composer indicates "php: >=7.2"), so there is no hard PHP upper-bound preventing installation on PHP 8.5 — but it is not explicitly marked as "PHP 8.5 tested" in the project notes. Test/confirm in your environment because compatibility also depends on coder's dependencies (phpcs, slevomat, symfony/yaml, etc.) and Drupal core versions you use. [1][2] What to check next (quick):
Sources:
🌐 Web query:
💡 Result: Short answer: Yes — Rector has added PHP 8.5-specific rules. Recent Rector releases (2.x) include many Php85 rules (e.g. renames, deprecated-arg removals, constant/attribute updates). Use the latest Rector 2.x and enable the PHP 8.5 set. [1][2] Sources:
🌐 Web query:
💡 Result: Short answer: yes—PHPStan can analyze code for PHP 8.5, but you should use a recent PHPStan release that includes PHP 8.5 support (or configure phpVersion manually) and run it on a PHP build that matches your target when needed. Details and sources:
If you want, tell me which PHPStan version you’re currently using (composer show phpstan/phpstan) and I’ll check whether that specific version supports PHP 8.5 or which PHPStan release to upgrade to. Sources: 🌐 Web query:
💡 Result: Yes — bamarni/composer-bin-plugin's composer.json requires "php": "^7.2.5 || ^8.0", so it accepts PHP 8.x (including 8.5). [1] Source:
🌐 Web query:
💡 Result: Short answer: Yes — ergebnis/composer-normalize declares compatibility with PHP 8.5. See the package requirements on Packagist and the project README. [1][2] Sources:
🌐 Web query:
💡 Result: Short answer: Yes — dealerdirect/phpcodesniffer-composer-installer supports PHP 8.x (so it will work on PHP 8.5). See the project's README and Packagist which state compatibility with PHP 8.x and Packagist's current package requirements (php: >=5.4). [1][2] Notes:
Sources: Plan: Remove PHP 8.5 incompatible packages from require-devBased on my analysis, drupal/coder is the only package in require-dev that:
All other packages are either:
I'll remove ⏳ Preparing changes... |
A summary of the changes CodeRabbit can apply:
|
A summary of the changes CodeRabbit can apply:
|
Creating a commit in the current branch to apply the edits... The changes have been committed to the current branch. Commit ID: |
552a144
to
6e4fc2d
Compare
Uh oh!
There was an error while loading. Please reload this page.