laminas/laminas-diactoros breaking changes
laminas/laminas-diactoros 3.0.0 (May 4, 2023) is its newest release with breaking changes, 88 of them. The first: GD image support removed from the Stream implementation in laminas/laminas-diactoros 3.0.0. Every breaking API change we have recorded in laminas/laminas-diactoros on Packagist: 88 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.10.1, released December 4, 2026. BSD-3-Clause license. Source repository
Packages on Packagist run on PHP. PHP end of life dates.
laminas/laminas-diactoros 3.0.0 breaking changes
- Removed
The Stream implementation no longer supports GD images. Code that passes GD image resources to streams must change. github.com - Removed
The legacy helper functions in the Zend namespace have been dropped. Code that calls them must use the current equivalents. github.com - Removed
Laminas\Diactoros\marshalUriFromSapi
Laminas\Diactoros\marshalUriFromSapi was removed in laminas/laminas-diactoros 3.0.0 packagist.org - Removed
Laminas\Diactoros\PhpInputStream
Laminas\Diactoros\PhpInputStream was removed in laminas/laminas-diactoros 3.0.0 packagist.org - Removed
marshalUriFromSapi
The marshalUriFromSapi function has been removed. Code that calls it must be updated. github.com - Removed
PhpInputStream
The PhpInputStream class has been removed. Code that uses it must stop depending on it. github.com - Removed
Zend\Diactoros\createUploadedFile
Use Laminas\Diactoros\createUploadedFile instead. packagist.org - Removed
Zend\Diactoros\marshalHeadersFromSapi
Use Laminas\Diactoros\marshalHeadersFromSapi instead. packagist.org - Removed
Zend\Diactoros\marshalMethodFromSapi
Use Laminas\Diactoros\marshalMethodFromSapi instead. packagist.org - Removed
Zend\Diactoros\marshalProtocolVersionFromSapi
Use Laminas\Diactoros\marshalProtocolVersionFromSapi instead. packagist.org - Removed
Zend\Diactoros\marshalUriFromSapi
Use Laminas\Diactoros\marshalUriFromSapi instead. packagist.org - Removed
Zend\Diactoros\normalizeServer
Use Laminas\Diactoros\normalizeServer instead. packagist.org - Removed
Zend\Diactoros\normalizeUploadedFiles
Use Laminas\Diactoros\normalizeUploadedFiles instead. packagist.org - Removed
Zend\Diactoros\parseCookieHeader
Zend\Diactoros\parseCookieHeader was removed in laminas/laminas-diactoros 3.0.0 packagist.org - Behavior changed
Integer header names are now filtered out during SAPI discovery, so code relying on them may behave differently. github.com - Behavior changed
ServerRequestFactory.fromGlobals
ServerRequestFactory::fromGlobals() now checks whether its arguments are truthy rather than set, so falsy values passed explicitly are treated differently. github.com - Signature changed
Laminas\Diactoros\CallbackStream::getMetadata
Was public function getMetadata($key = null); now public function getMetadata(?string $key = null). packagist.org - Signature changed
Laminas\Diactoros\CallbackStream::read
Was public function read($length): string; now public function read(int $length): string. packagist.org - Signature changed
Laminas\Diactoros\CallbackStream::seek
Was public function seek($offset, $whence = SEEK_SET); now public function seek(int $offset, int $whence = SEEK_SET): void. packagist.org - Signature changed
Laminas\Diactoros\CallbackStream::write
Was public function write($string): void; now public function write(string $string): int. packagist.org - Signature changed
Laminas\Diactoros\MessageTrait::getHeader
Was public function getHeader($header): array; now public function getHeader(string $header): array. packagist.org - Signature changed
Laminas\Diactoros\MessageTrait::getHeaderLine
Was public function getHeaderLine($name): string; now public function getHeaderLine(string $name): string. packagist.org - Signature changed
Laminas\Diactoros\MessageTrait::hasHeader
Was public function hasHeader($header): bool; now public function hasHeader(string $header): bool. packagist.org - Signature changed
Laminas\Diactoros\MessageTrait::withAddedHeader
Was public function withAddedHeader($name, $value): MessageInterface; now public function withAddedHeader(string $name, $value): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\MessageTrait::withHeader
Was public function withHeader($name, $value): MessageInterface; now public function withHeader(string $name, $value): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\MessageTrait::withoutHeader
Was public function withoutHeader($name): MessageInterface; now public function withoutHeader(string $name): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\MessageTrait::withProtocolVersion
Was public function withProtocolVersion($version): MessageInterface; now public function withProtocolVersion(string $version): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\RelativeStream::getMetadata
Was public function getMetadata($key = null); now public function getMetadata(?string $key = null). packagist.org - Signature changed
Laminas\Diactoros\RelativeStream::read
Was public function read($length): string; now public function read(int $length): string. packagist.org - Signature changed
Laminas\Diactoros\RelativeStream::seek
Was public function seek($offset, $whence = SEEK_SET): void; now public function seek(int $offset, int $whence = SEEK_SET): void. packagist.org - Signature changed
Laminas\Diactoros\RelativeStream::write
Was public function write($string): int; now public function write(string $string): int. packagist.org - Signature changed
Laminas\Diactoros\Request::getHeader
Was public function getHeader($name): array; now public function getHeader(string $name): array. packagist.org - Signature changed
Laminas\Diactoros\Request::getHeaderLine
Was public function getHeaderLine($name): string; now public function getHeaderLine(string $name): string. packagist.org - Signature changed
Laminas\Diactoros\Request::hasHeader
Was public function hasHeader($header): bool; now public function hasHeader(string $header): bool. packagist.org - Signature changed
Laminas\Diactoros\Request::withAddedHeader
Was public function withAddedHeader($name, $value): MessageInterface; now public function withAddedHeader(string $name, $value): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\Request::withHeader
Was public function withHeader($name, $value): MessageInterface; now public function withHeader(string $name, $value): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\Request::withMethod
Was public function withMethod($method): RequestInterface; now public function withMethod(string $method): RequestInterface. packagist.org - Signature changed
Laminas\Diactoros\Request::withoutHeader
Was public function withoutHeader($name): MessageInterface; now public function withoutHeader(string $name): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\Request::withProtocolVersion
Was public function withProtocolVersion($version): MessageInterface; now public function withProtocolVersion(string $version): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\Request::withRequestTarget
Was public function withRequestTarget($requestTarget): RequestInterface; now public function withRequestTarget(string $requestTarget): RequestInterface. packagist.org - Signature changed
Laminas\Diactoros\Request::withUri
Was public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface; now public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::getHeader
Was public function getHeader($header): array; now public function getHeader(string $header): array. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::getHeaderLine
Was public function getHeaderLine($name): string; now public function getHeaderLine(string $name): string. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::hasHeader
Was public function hasHeader($header): bool; now public function hasHeader(string $header): bool. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::withAddedHeader
Was public function withAddedHeader($name, $value): MessageInterface; now public function withAddedHeader(string $name, $value): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::withHeader
Was public function withHeader($name, $value): MessageInterface; now public function withHeader(string $name, $value): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::withMethod
Was public function withMethod($method): RequestInterface; now public function withMethod(string $method): RequestInterface. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::withoutHeader
Was public function withoutHeader($name): MessageInterface; now public function withoutHeader(string $name): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::withProtocolVersion
Was public function withProtocolVersion($version): MessageInterface; now public function withProtocolVersion(string $version): MessageInterface. packagist.org - Signature changed
Laminas\Diactoros\RequestTrait::withRequestTarget
Was public function withRequestTarget($requestTarget): RequestInterface; now public function withRequestTarget(string $requestTarget): RequestInterface. packagist.org
And 38 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.