π 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!