HTTPlug v2.1.0 Release Notes

Release Date: 2019-12-27 // 3 months ago
  • 🔄 Changed

    • 👻 Http\Client\Exception\NetworkException no longer extends Http\Client\Exception\RequestException, in accordance with PSR-18

Previous changes from v2.0.0

  • This version is no BC break for consumers using HTTPlug. However, HTTP clients that implement HTTPlug need to adjust because we add return type declarations.

    ➕ Added

    • 👌 Support for PSR-18 (HTTP client).

    🔄 Changed

    • BC Break: HttpClient::sendRequest(RequestInterface $request) has a return type annotation. The new signature is HttpClient::sendRequest(RequestInterface $request): ResponseInterface.
    • BC Break: RequestException::getRequest() has a return type annotation. The new signature is RequestException::getRequest(): RequestInterface.

    ✂ Removed

    • 👍 PHP 5 support