Repository navigation
1.2.0
What's Changed
Added
- Add
RateLimitExceptionfor HTTP 429 responses (extendsErrorException— no breaking changes) - Add PSR-7 response access on
ErrorExceptionandUnserializableResponsevia$e->response - Add
MetaInformationCustomfor capturing non-standard response headers via$meta->custom - Add
OverrideStrategyenum for controllingfake()override merging behavior - Add
addHeader()method toTransporterContractfor runtime header injection
Improved
- Preserve API error message on rate limit responses instead of using a generic message
- Use
(string) $response->getBody()instead ofgetContents()for reliable stream reading - Add
JSON_UNESCAPED_UNICODEflag for proper Unicode handling in request payloads - Simplify
Fakeabletrait usingarray_replace_recursive - Fix namespace resolution in
Fakeablestr_replacecall - Parameterize
Streamabletrait methods for flexibility
Upgrading
See UPGRADING.md for details. All changes are backwards compatible.
Full Changelog: 1.1.0...1.2.0