Repository navigation
Add PHP 8.6 support - #160
Merged
Merged
Conversation
Allow ~8.6.0 in composer.json and add 8.6 to the PHPUnit matrix.
PHP 8.6 no longer includes a call's arguments in warning messages
("DOMDocument::save(): Failed to open stream" instead of
"DOMDocument::save(./test/no-writing.xml): ..."), so
testFailWriteXMLReportsWarning now accepts either form.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #160 +/- ##
============================================
+ Coverage 90.69% 91.23% +0.54%
- Complexity 1424 1441 +17
============================================
Files 25 26 +1
Lines 3170 3183 +13
============================================
+ Hits 2875 2904 +29
+ Misses 295 279 -16 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 26, 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.
PHP 8.6 is out, so this marks it as supported.
composer.json: allow~8.6.0and update the package description to "PHP 7.1 to 8.6".8.6to the PHPUnit matrix.CHANGELOG.md: note the new support under Unreleased.Test fix
PHP 8.6 dropped a call's arguments from warning messages.
DOMDocument::save()on an unwritable path now warnsDOMDocument::save(): Failed to open stream: ..., where 8.5 and earlier saidDOMDocument::save(./test/no-writing.xml): Failed to open stream: ....testFailWriteXMLReportsWarningmatched the old text exactly, so it failed on 8.6. It now uses a regex that accepts both forms, plus the lowercasefailedthat PHP 7 used. No library code changed:IOExceptionstill carries whatever message PHP emits.Verified locally
composer run lintandcomposer run lint:min-phpare clean🤖 Generated with Claude Code