Added
- Comprehensive test coverage for array body handling in
ConfiguresRequestsTest
- Explicit option conflict prevention in request body configuration
- Better error prevention for Guzzle HTTP client integration
Changed
ConfiguresRequests::withBody()
method now ensures mutual exclusivity of body-related options- Request option handling now explicitly removes conflicting options (
json
,body
,form_params
,multipart
) - Improved reliability of JSON array requests by preventing option conflicts
Fixed
- BREAKING FIX: Resolved Guzzle
InvalidArgumentException
when sending POST requests with array bodies - Fixed issue where both
json
andbody
options were set simultaneously, causing Guzzle to reject requests - Eliminated "Passing in the 'body' request option as an array to send a request is not supported" error
- Restored ability to send structured JSON data using PHP arrays in request bodies
- Fixed helper functions (
post()
,put()
,patch()
, etc.) failing with array payloads
Full Changelog: 3.2.2...3.2.3