Skip to content

Docs, CI matrix, and small cleanups before 0.4.0 - #37

Merged
sc0Vu merged 5 commits into
web3p:masterfrom
sc0Vuai:chore/docs-ci-cleanups
Sep 23, 2026
Merged

sc0Vu merged 5 commits into
web3p:masterfrom
sc0Vuai:chore/docs-ci-cleanups

Conversation

@sc0Vuai

@sc0Vuai sc0Vuai commented Sep 23, 2026

Copy link
Copy Markdown
Contributor
  • docs: correct the encode/decode documentation. decode() returns a hex string or a nested array and accepts input with or without 0x. Documents accepted input types and thrown exceptions.
  • ci: test all PHP versions allowed by composer.json (7.1–8.4; previously 7.3–8.0).
  • fix: Str::encode('', 'ascii') returned 00 before PHP 8.2, because str_split('') returns [''] there. RLP output was not affected.
  • chore: "PHP" → "php" in composer.json; ignore .phpunit.result.cache.
  • docs: add CHANGELOG.md for 0.4.0, listing breaking changes and a migration note for integer quantities passed as hex.

🤖 Generated with Claude Code (https://claude.com/claude-code)

sc0Vuai and others added 5 commits September 24, 2026 03:50
- decode() returns a hex string or a nested array, not only an array,
  and accepts input with or without the 0x prefix
- document accepted input types for encode(): hex strings are encoded
  byte for byte, numeric strings as text, integers must be
  non-negative and <= PHP_INT_MAX
- document the exceptions thrown by encode() and decode()

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
composer.json allows ^7.1 | ^8.0 but CI only ran 7.3, 7.4 and 8.0.
Test 7.1 through 8.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before PHP 8.2, str_split('') returns [''] instead of [], so ord('')
produced a single 00 byte for the empty string. The RLP encoder uses
the utf8 branch, so RLP output was not affected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- composer.json: "PHP" -> "php", the conventional platform package name
- .gitignore: add .phpunit.result.cache generated by PHPUnit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
List the breaking changes and fixes since 0.3.5, including the
migration note for integer quantities passed as hex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.55%. Comparing base (3edcb80) to head (d23d152).

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #37   +/-   ##
=========================================
  Coverage     96.55%   96.55%           
- Complexity       68       69    +1     
=========================================
  Files             3        3           
  Lines           174      174           
=========================================
  Hits            168      168           
  Misses            6        6           

☔ 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.

@sc0Vu
sc0Vu merged commit e28c47b into web3p:master Sep 23, 2026
11 checks passed
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