Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw
InvalidArgumentException
when an incorrect headers
array is…
… provided (#2942) * Throw `InvalidArgumentException` when an incorrect `headers` array is provided As discussed in PR #2916 after it was merged an `InvalidArgumentException` is more fitting, as passing an invalid `headers` array is a clear programming error that needs to be fixed and not caught. This is consistent with the validation of the other options, e.g. when using `multipart` and `form_params` at the same time. see #2916 see a2b8dd1 * Remove obsolete import in Client.php / ClientTest.php
- Loading branch information
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters