Skip to content

Add PHP 8.6 support - #160

Merged
jakejackson1 merged 1 commit into
mainfrom
feature/php-8.6
Nov 26, 2026
Merged

jakejackson1 merged 1 commit into
mainfrom
feature/php-8.6

Conversation

@gravitypdf-bot

Copy link
Copy Markdown
Contributor

PHP 8.6 is out, so this marks it as supported.

  • composer.json: allow ~8.6.0 and update the package description to "PHP 7.1 to 8.6".
  • Unit testing workflow: add 8.6 to 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 warns DOMDocument::save(): Failed to open stream: ..., where 8.5 and earlier said DOMDocument::save(./test/no-writing.xml): Failed to open stream: .... testFailWriteXMLReportsWarning matched the old text exactly, so it failed on 8.6. It now uses a regex that accepts both forms, plus the lowercase failed that PHP 7 used. No library code changed: IOException still carries whatever message PHP emits.

Verified locally

  • PHP 8.6.0: full suite passes (705 tests; 1 skip, the libxml-version-dependent one that skips already)
  • PHP 7.4 and 8.3: the changed test passes
  • composer run lint and composer run lint:min-php are clean

🤖 Generated with Claude Code

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

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.23%. Comparing base (6ae6acf) to head (ff15b2a).
⚠️ Report is 19 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jakejackson1
jakejackson1 merged commit 281a375 into main Nov 26, 2026
15 checks passed
@jakejackson1
jakejackson1 deleted the feature/php-8.6 branch November 26, 2026 00:50
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.

2 participants