1.23.7
(fix): Fix DateTime formatting for optional and nullable query parameters. Previously, optional and nullable DateTime query parameters were passed as raw DateTime objects to Guzzle HTTP client, causing request failures. The fix ensures that Optional<DateTime> and Nullable<DateTime> types are correctly identified and formatted using .format() method with proper date/datetime constants.
1.23.6
(fix): Fix wire tests to pass X-Test-Id header via method call options. Dynamic snippets now pass arbitrary headers from the snippet request as per-request options when generating calls on existing clients (skipClientInstantiation mode). This enables wire tests to properly correlate requests with WireMock verification.
1.23.5
(fix): Fix wire test environment parameter generation and inferred auth parameter handling. Wire tests now properly indent environment parameters and use Environments::custom() instead of raw arrays for type safety. Additionally, required inferred auth parameters no longer use unnecessary null coalescing operators (??), resolving PHPStan static analysis warnings.
1.23.4
(fix): Fix wire test generation for inferred auth by using getInferredAuth() explicitly. The previous fix relied on the visitor pattern which may not correctly identify inferred auth schemes in all cases.
1.23.3
(fix): Fix wire test generation for inferred auth. Wire tests now correctly pass the required auth parameters (e.g., apiKey) extracted from the token endpoint’s request body and headers, matching the root client constructor signature.
1.23.2
(fix): Fix constructor signature mismatches in multi-URL environments. Subpackage clients now consistently use isMultiUrl to determine whether to accept Environments or options as the second constructor parameter, matching the root client’s behavior. Also fixes OAuth and inferred auth client instantiation to pass the environment parameter when in multi-URL mode, and updates wire tests to extend WireMockTestCase and include auth parameters.