Skip to content

v8.1.0 - Improved Type Safety & Error Handling

Choose a tag to compare

@cl77 cl77 released this 12 Jan 12:43
· 3 commits to master since this release

What's New

New Features

  • ApiException class: Comprehensive exception for all API error codes (100-903) with descriptive messages
  • Configurable test recipient: Tests now support SEVEN_TEST_RECIPIENT environment variable

Improvements

  • Type safety: All Resource classes now use explicit type casts for consistent data handling
  • Better error handling: Client now properly handles numeric API responses and throws appropriate exceptions
  • Test infrastructure: Refactored BaseTest to AbstractTestCase for better test organization

Documentation

  • Updated README with API error codes table
  • Documented exception handling patterns
  • Updated PHP requirement to 8.2+ in documentation

Breaking Changes

None - this is a fully backwards-compatible release.