v8.1.0 - Improved Type Safety & Error Handling
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_RECIPIENTenvironment 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
BaseTesttoAbstractTestCasefor 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.