Skip to content

Support PHP 8.6 - #130

Closed
tacman wants to merge 1 commit into
halaxa:masterfrom
tacman:php-8.6
Closed

tacman wants to merge 1 commit into
halaxa:masterfrom
tacman:php-8.6

Conversation

@tacman

@tacman tacman commented Nov 20, 2026

Copy link
Copy Markdown

PHP 8.6.0 is out, and composer.json currently caps PHP at 8.5, so composer require halaxa/json-machine fails on 8.6.

Changes:

  • Allow 7.2 - 8.6 in composer.json.
  • Two tests compared the whole json_decode error message. PHP 8.6 appends " near location L:C" to it (for example Syntax error near location 1:18), so the tests now check the start of the message. The library code needed no change.
  • CHANGELOG entry.

I ran the suite locally on PHP 8.6.0: 841 tests, 1856 assertions, all pass.

Not changed: the Docker matrix in the Makefile. I did not check that a PHP 8.6 image and a matching Xdebug version exist, so I left that for you.

Allow PHP 8.6 in composer.json. PHP 8.6 appends " near location L:C" to json_decode error messages, so two tests now match the start of the message instead of the whole string.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@halaxa

halaxa commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Thanks for the nudge 👍. Added here ac50c68. It was easier for me to let my agent do it and commit it separately.

@halaxa halaxa closed this Nov 21, 2026
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