1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-29 11:17:44 +01:00
Tim Düsterhus 399c0eaf9b
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 a2b8dd1ad7e733d50e9c7b80cb375e0883a7088d

* Remove obsolete import in Client.php / ClientTest.php
2021-10-17 14:39:51 +01:00
..
2020-09-23 11:35:29 +02:00
2020-10-01 13:31:51 +02:00