Releases: seven-io/php-client
Releases · seven-io/php-client
v8.0.1 - Fix HLR Lookup Type Mismatch
🐛 Bug Fix
Fixed HLR Lookup Type Error
Problem:
- HLR lookup was failing with
TypeError: Cannot assign int to property LookupHlr::$gsmCode of type ?string - This occurred after the seven.io API was updated to consistently return
gsm_codeas integer instead of string - Affected users on PHP 8.2+ with strict type checking
Solution:
- Changed
LookupHlr::$gsmCodeproperty type from?stringto?int - Updated
getGsmCode()return type accordingly - Updated tests to expect integer values
- Fixed README HLR example with correct method names
Impact:
- ✅ HLR lookups now work correctly with the updated API
- ✅ Type-safe handling of GSM error codes (0 = no error, 1-255 = error codes)
- ✅ No breaking changes for existing code
Files Changed:
src/Resource/Lookup/LookupHlr.phptests/LookupTest.phpREADME.md
Thanks to our users for reporting this issue!
v8.0.0
v7.0.3
v7.0.2
v7.0.1
v7.0.0
🚀 Release v7.0.0
💥 Breaking Changes
sentWithparameter in Client constructor is now deprecated and ignored- Several resource properties changed from required to nullable
- Enhanced error handling may throw exceptions in previously silent cases
✨ Features
- Deprecate sentWith parameter and always use 'php-api' constant
- Enhanced error handling with proper exception throwing
- Improved error detection for quoted error codes
- Better error messages with HTTP status codes
🐛 Bug Fixes
- Fixed RcsMessage class usage (was incorrectly using SmsMessage)
- Set correct API error codes in exception classes (900-903)
- Fixed date format in ContactsTest (German to ISO format)
- Fixed InvalidApiKeyException not being thrown on error 900 (#19)
🔧 Improvements
- Improved null safety across lookup resources
- Better resource payload building (only include non-null values)
- More flexible test assertions to handle API variations
- Enhanced test reliability with null checks
- Removed unused JournalResource::replies method
📦 Changed Files
- Client error handling and sentWith deprecation
- All exception classes with proper error codes
- Lookup resources (Carrier, LookupHlr) with nullable properties
- Contact and Properties resources with conditional payload building
- ValidateForVoice with nullable sender
- Comprehensive test improvements
🤖 Generated with Claude Code