Upgrading nyholm/psr7 0.3 to 1
Unknown0.3.0 → 1.8.2
Fetching 18 releases from GitHub…0 / 18
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 1.7.0: ^7.1 → >=7.2.
API changes
Generated by DepDelta from published PHP source. Not mixed with prose notes.
- removed:
method Request.getMethod(): string - removed:
method Request.getRequestTarget(): string - removed:
method Request.getUri(): UriInterface - removed:
method Request.withMethod($method): self - removed:
method Request.withRequestTarget($requestTarget): self - removed:
method Request.withUri(UriInterface $uri, $preserveHost = …): self - removed:
method Stream.__toString(): string - removed:
static method Stream.createFromResource($resource): self - changed:
class ServerRequest extends Request implements ServerRequestInterface → class ServerRequest implements ServerRequestInterface - changed:
constructor Request($method, $uri, array $headers = …, $body = …, $version = …) → constructor Request(string $method, $uri, array $headers = …, $body = …, string $version = …) - changed:
constructor Response(int $status = …, array $headers = …, $body = …, string $version = …, $reason = …) → constructor Response(int $status = …, array $headers = …, $body = …, string $version = …, ?string $reason = …) - changed:
constructor ServerRequest($method, $uri, array $headers = …, $body = …, $version = …, array $serverParams = …) → constructor ServerRequest(string $method, $uri, array $headers = …, $body = …, string $version = …, array $serverParams = …) - changed:
constructor Uri($uri = …) → constructor Uri(string $uri = …) - changed:
method MessageTrait.withAddedHeader($header, $value): self → method MessageTrait.withAddedHeader($header, $value): MessageInterface - changed:
method MessageTrait.withBody(StreamInterface $body): self → method MessageTrait.withBody(StreamInterface $body): MessageInterface - changed:
method MessageTrait.withHeader($header, $value): self → method MessageTrait.withHeader($header, $value): MessageInterface - changed:
method MessageTrait.withProtocolVersion($version): self → method MessageTrait.withProtocolVersion($version): MessageInterface - changed:
method MessageTrait.withoutHeader($header): self → method MessageTrait.withoutHeader($header): MessageInterface - changed:
method Response.withStatus($code, $reasonPhrase = …): self → method Response.withStatus($code, $reasonPhrase = …): ResponseInterface - changed:
method ServerRequest.withAttribute($attribute, $value): self → method ServerRequest.withAttribute($attribute, $value): ServerRequestInterface - changed:
method ServerRequest.withCookieParams(array $cookies) → method ServerRequest.withCookieParams(array $cookies): ServerRequestInterface - changed:
method ServerRequest.withParsedBody($data) → method ServerRequest.withParsedBody($data): ServerRequestInterface - changed:
method ServerRequest.withQueryParams(array $query) → method ServerRequest.withQueryParams(array $query): ServerRequestInterface - changed:
method ServerRequest.withUploadedFiles(array $uploadedFiles) → method ServerRequest.withUploadedFiles(array $uploadedFiles): ServerRequestInterface - changed:
method ServerRequest.withoutAttribute($attribute): self → method ServerRequest.withoutAttribute($attribute): ServerRequestInterface - changed:
method UploadedFile.getSize(): ?int → method UploadedFile.getSize(): int - changed:
method Uri.withFragment($fragment): self → method Uri.withFragment($fragment): UriInterface - changed:
method Uri.withHost($host): self → method Uri.withHost($host): UriInterface - changed:
method Uri.withPath($path): self → method Uri.withPath($path): UriInterface - changed:
method Uri.withPort($port): self → method Uri.withPort($port): UriInterface - changed:
method Uri.withQuery($query): self → method Uri.withQuery($query): UriInterface - changed:
method Uri.withScheme($scheme): self → method Uri.withScheme($scheme): UriInterface - changed:
method Uri.withUserInfo($user, $password = …): self → method Uri.withUserInfo($user, $password = …): UriInterface - changed:
static method Stream.create(string $content): self → static method Stream.create($body = …): StreamInterface - added:
constructor Stream($body) - added:
method RequestTrait.getMethod(): string - added:
method RequestTrait.getRequestTarget(): string - added:
method RequestTrait.getUri(): UriInterface - added:
method RequestTrait.withMethod($method): RequestInterface - added:
method RequestTrait.withRequestTarget($requestTarget): RequestInterface - added:
method RequestTrait.withUri(UriInterface $uri, $preserveHost = …): RequestInterface - added:
method StreamTrait.__toString() - added:
method StreamTrait.__toString(): string - added:
trait RequestTrait - added:
trait StreamTrait
- removed:
class MessageFactory implements \Http\Message\MessageFactory, RequestFactoryInterface, ResponseFactoryInterface - removed:
class ServerRequestFactory implements ServerRequestFactoryInterface - removed:
class StreamFactory implements \Http\Message\StreamFactory, StreamFactoryInterface - removed:
class UploadedFileFactory implements UploadedFileFactoryInterface - removed:
class UriFactory implements \Http\Message\UriFactory, UriFactoryInterface - removed:
method MessageFactory.createRequest($method, $uri, array $headers = …, $body = …, $protocolVersion = …) - removed:
method MessageFactory.createResponse($statusCode = …, $reasonPhrase = …, array $headers = …, $body = …, $protocolVersion = …) - removed:
method ServerRequestFactory.createServerRequest($method, $uri): ServerRequestInterface - removed:
method ServerRequestFactory.createServerRequestFromArray(array $server): ServerRequestInterface - removed:
method ServerRequestFactory.createServerRequestFromArrays(array $server, array $headers, array $cookie, array $get, array $post, array $files): ServerRequestInterface - removed:
method ServerRequestFactory.createServerRequestFromGlobals(): ServerRequestInterface - removed:
method StreamFactory.copyToStream(StreamInterface $source, StreamInterface $dest, $maxLen = …) - removed:
method StreamFactory.createStream($body = …) - removed:
method StreamFactory.createStreamFromFile($file, $mode = …) - removed:
method StreamFactory.createStreamFromResource($resource) - removed:
method UploadedFileFactory.createUploadedFile($file, $size = …, $error = …, $clientFilename = …, $clientMediaType = …) - removed:
method UriFactory.createUri($uri = …): UriInterface - removed:
method UriFactory.createUriFromArray(array $server): UriInterface - added:
class HttplugFactory implements MessageFactory, StreamFactory, UriFactory - added:
class Psr17Factory implements RequestFactoryInterface, ResponseFactoryInterface, ServerRequestFactoryInterface, StreamFactoryInterface, UploadedFileFactoryInterface, UriFactoryInterface - added:
method HttplugFactory.createRequest($method, $uri, array $headers = …, $body = …, $protocolVersion = …): RequestInterface - added:
method HttplugFactory.createResponse($statusCode = …, $reasonPhrase = …, array $headers = …, $body = …, $version = …): ResponseInterface - added:
method HttplugFactory.createStream($body = …): StreamInterface - added:
method HttplugFactory.createUri($uri = …): UriInterface - added:
method Psr17Factory.createRequest(string $method, $uri): RequestInterface - added:
method Psr17Factory.createResponse(int $code = …, string $reasonPhrase = …): ResponseInterface - added:
method Psr17Factory.createServerRequest(string $method, $uri, array $serverParams = …): ServerRequestInterface - added:
method Psr17Factory.createStream(string $content = …): StreamInterface - added:
method Psr17Factory.createStreamFromFile(string $filename, string $mode = …): StreamInterface - added:
method Psr17Factory.createStreamFromResource($resource): StreamInterface - added:
method Psr17Factory.createUploadedFile(StreamInterface $stream, ?int $size = …, int $error = …, ?string $clientFilename = …, ?string $clientMediaType = …): UploadedFileInterface - added:
method Psr17Factory.createUri(string $uri = …): UriInterface
- removed:
class DiscoveryStrategy implements HttplugDiscoveryStrategy - removed:
static method DiscoveryStrategy.getCandidates($type)