HTTPlug v1.1.0 Release Notes

Release Date: 2016-08-31 // over 7 years ago
  • ๐Ÿ”Œ During the development of plugins we faced a problem with exceptions thrown in plugins.

    ๐Ÿ‘ป Any exceptions not implementing Http\Client\Exception ended up in an invalid argument error because of these lines:

    https://github.com/php-http/promise/blob/v1.0.0/src/RejectedPromise.php#L36-L38

    ๐Ÿ‘ป This type leak allowed to inject an exception to be passed to the onRejected callback of a Promise.

    ๐Ÿš€ In the current release we introduced HTTP specific promises which does not catch all exceptions, but HTTP ones. Every other exception will be thrown immediately.