* Update Curl is_resource() to work with PHP 8 Curl(Multi)Handle objects
Updates `is_resource()` calls for curl handlers to properly work with PHP 8's `\CurlHandle` and `\CurlMultiHandle` objects.
See https://php.watch/versions/8.0/resource-CurlHandle
PHPDoc comments are updated to indicate that the variable/property can be either a resource or a Curl object.
* Updated baselines
Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
* MessageFormatterInterface added
* Middleware::log accepts MessageFormatterInterface
* log format constants moved back into MessageFormatter. Annotation `@deprecated log format constants will be moved into MessageFormatterInterface in guzzlehttp/guzzle:8.0` added.
* MessageFormatter remove @deprecated constants annotation
* Make the chage in a BC way
* Revert config
Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
Co-authored-by: Richard van Laak <richard@scribbr.nl>
Co-authored-by: Tobias Nyholm <tobias.nyholm@gmail.com>
Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
* Fix issues when compiled against old intl icu
* Fixes
* Bumped minimum polyfill-intl-idn version
* Skip conversion for ASCII domains
* Lock version to symfony/polyfill-intl-idn:1.17.0
Co-authored-by: Nyholm <tobias.nyholm@gmail.com>
* Separate ConnectException from RequestException
* Remove deprecation annotations
* Remove unneeded ResponseAwareTrait
* Add breaking change to UPGRADING.md
* Split trait use statements into separate lines
* Remove use of traits
* Remove annotation method in order to enforce return type
* Wrote tests about BadResponseException
* Added docblocks for BadResponseException
* update baseline and fix codestyle
* Fixes from typehints of the code
* Remove ignored errors from baseline
* Fix the error thrown by phpstan
* Update code base on typehints
* Fix codestyle issues
* Revert some changes on baseline
* Added more return types and typehints to functions
* Remove a wrong typehint on a function
* Fix phpstan
* Added type annotation for Client
* Added annotations for cookie
* Annotations for exceptions
* Adding more annotations
* Added annotation of the rest
* cs