Upgrading php-http/httplug 1 to 2
Unknownv1.1.0 → 2.4.1
Fetching 6 releases from GitHub…0 / 6
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
PHP requirement changed in 2.2.0: >=5.4 → ^7.1 || ^8.0.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
method HttpClient.sendRequest(RequestInterface $request) - changed:
interface Exception → interface Exception extends PsrClientException - changed:
interface HttpClient → interface HttpClient extends ClientInterface
- removed:
method RequestException.getRequest() - changed:
class NetworkException extends RequestException → class NetworkException extends TransferException implements PsrNetworkException - changed:
class RequestException extends TransferException → class RequestException extends TransferException implements PsrRequestException - changed:
constructor HttpException($message, RequestInterface $request, ResponseInterface $response, \Exception $previous = …) → constructor HttpException($message, RequestInterface $request, ResponseInterface $response, ?\Exception $previous = …) - changed:
constructor RequestException($message, RequestInterface $request, \Exception $previous = …) → constructor RequestException($message, RequestInterface $request, ?\Exception $previous = …) - changed:
static method HttpException.create(RequestInterface $request, ResponseInterface $response, \Exception $previous = …) → static method HttpException.create(RequestInterface $request, ResponseInterface $response, ?\Exception $previous = …) - added:
constructor NetworkException($message, RequestInterface $request, ?\Exception $previous = …) - added:
method RequestAwareTrait.getRequest(): RequestInterface - added:
trait RequestAwareTrait
- changed:
method HttpFulfilledPromise.then(callable $onFulfilled = …, callable $onRejected = …) → method HttpFulfilledPromise.then(?callable $onFulfilled = …, ?callable $onRejected = …) - changed:
method HttpRejectedPromise.then(callable $onFulfilled = …, callable $onRejected = …) → method HttpRejectedPromise.then(?callable $onFulfilled = …, ?callable $onRejected = …)