symfony/http-foundation breaking changes
symfony/http-foundation v8.0.0 (November 27, 2025) is its newest release with breaking changes, 28 of them. The first: Removed Symfony\Component\HttpFoundation\IpUtils::PRIVATE_RANGES. Every breaking API change we have recorded in symfony/http-foundation on Packagist: 233 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v8.2.0, released November 28, 2026. MIT license. Source repository
Its v8.0.0-BETA1 release requires PHP 8.4 or later. PHP end of life dates.
symfony/http-foundation v8.0.0 breaking changes
- Removed
Symfony\Component\HttpFoundation\IpUtils::PRIVATE_RANGES
Symfony\Component\HttpFoundation\IpUtils::PRIVATE_RANGES was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Request::SUB_REQUEST_TRUSTED_HEADER_SET
Symfony\Component\HttpFoundation\Request::SUB_REQUEST_TRUSTED_HEADER_SET was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__serialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__serialize was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__unserialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__unserialize was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::create_sid
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::create_sid was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::updateTimestamp
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::updateTimestamp was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MarshallingSessionHandler::__serialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\MarshallingSessionHandler::__serialize was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MarshallingSessionHandler::__unserialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\MarshallingSessionHandler::__unserialize was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MarshallingSessionHandler::create_sid
Symfony\Component\HttpFoundation\Session\Storage\Handler\MarshallingSessionHandler::create_sid was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler::__serialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler::__serialize was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler::__unserialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler::__unserialize was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler::create_sid
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler::create_sid was removed in symfony/http-foundation v8.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy::create_sid
Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy::create_sid was removed in symfony/http-foundation v8.0.0 packagist.org - Signature changed
Symfony\Component\HttpFoundation\IpUtils::anonymize
Was public static function anonymize(string $ip/*, int $v4Bytes = 1, int $v6Bytes = 8 */): string; now public static function anonymize(string $ip, int $v4Bytes = 1, int $v6Bytes = 8): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Request::getFormat
Was public function getFormat(?string $mimeType/*, bool $subtypeFallback = false */): ?string; now public function getFormat(?string $mimeType, bool $subtypeFallback = false): ?string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Request::setFormat
Was public function setFormat(?string $format, string|array $mimeTypes): void; now public function setFormat(string $format, string|array $mimeTypes): void. packagist.org - Signature changed
Symfony\Component\HttpFoundation\ResponseHeaderBag::clearCookie
Was public function clearCookie(string $name, ?string $path = '/', ?string $domain = null, bool $secure = false, bool $httpOnly = true, ?string $sameSite = null /*, bool $partitioned = false */): void; now public function... packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::doRead
Was abstract protected function doRead(#[\SensitiveParameter] string $sessionId): string|false; now abstract protected function doRead(#[\SensitiveParameter] string $sessionId): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::read
Was public function read(#[\SensitiveParameter] string $sessionId): string|false; now public function read(#[\SensitiveParameter] string $sessionId): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MarshallingSessionHandler::read
Was public function read(#[\SensitiveParameter] string $sessionId): string|false; now public function read(#[\SensitiveParameter] string $sessionId): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MemcachedSessionHandler::doRead
Was protected function doRead(#[\SensitiveParameter] string $sessionId): string|false; now protected function doRead(#[\SensitiveParameter] string $sessionId): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\MigratingSessionHandler::read
Was public function read(#[\SensitiveParameter] string $sessionId): string|false; now public function read(#[\SensitiveParameter] string $sessionId): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler::configureSchema
Was public function configureSchema(Schema $schema, ?\Closure $isSameDatabase = null); now public function configureSchema(Schema $schema, ?\Closure $isSameDatabase = null): void. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler::doRead
Was protected function doRead(#[\SensitiveParameter] string $sessionId): string|false; now protected function doRead(#[\SensitiveParameter] string $sessionId): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\SessionHandlerFactory::createHandler
Was public static function createHandler(#[\SensitiveParameter] object|string $connection, #[\SensitiveParameter] array $options = []): AbstractSessionHandler; now public static function createHandler(object|string $connection, array... packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler::doRead
Was protected function doRead(#[\SensitiveParameter] string $sessionId): string|false; now protected function doRead(#[\SensitiveParameter] string $sessionId): string. packagist.org - Signature changed
Symfony\Component\HttpFoundation\Session\Storage\MetadataBag::__construct
Was public function __construct(private string $storageKey = '_sf2_meta', private int $updateThreshold = 0, private ?int $cookieLifetime = null); now public function __construct(private string $storageKey = '_sf2_meta', private int... packagist.org - Signature changed
Symfony\Component\HttpFoundation\UriSigner::sign
Was public function sign(string $uri/*, \DateTimeInterface|\DateInterval|int|null $expiration = null */): string; now public function sign(string $uri, \DateTimeInterface|\DateInterval|int|null $expiration = null): string. packagist.org
symfony/http-foundation v8.0.0-BETA1 breaking changes
- Removed
Symfony 8 requires PHP 8.4 or later, so older PHP versions are no longer supported. github.com - Removed
Requests using HTTP method override for GET, HEAD, CONNECT or TRACE are no longer overridden, so code relying on this must change. github.com - Removed
NativeSessionStorage
Previously deprecated session options are removed from NativeSessionStorage. Remove them from your configuration. github.com - Removed
Symfony\Component\HttpFoundation\Request::get
Request::get() is removed. Use the ->attributes, ->query or ->request properties directly instead. packagist.org - Behavior changed
HTTP method override no longer applies to GET, HEAD, CONNECT and TRACE requests. Code relying on overriding these methods must change. github.com - Behavior changed
Symfony 8 requires PHP 8.4 or later. github.com - Behavior changed
Request.createFromGlobals
createFromGlobals() now parses the request body for PUT, DELETE, PATCH and QUERY requests. github.com - Behavior changed
Request.sendHeaders
Calling Request::sendHeaders() after headers have been sent now triggers a PHP warning. github.com - Configuration changed
Symfony 8 requires PHP 8.4 or later. Upgrade PHP before updating. github.com - Signature changed
New parameters are now declared explicitly on interfaces and methods, which can affect custom implementations. github.com
symfony/http-foundation v7.0.0 breaking changes
- Removed
Symfony\Component\HttpFoundation\ExpressionRequestMatcher
Use Symfony\Component\HttpFoundation\RequestMatcher\ExpressionRequestMatcher instead. packagist.org - Removed
Symfony\Component\HttpFoundation\IpUtils::PRIVATE_RANGES
Symfony\Component\HttpFoundation\IpUtils::PRIVATE_RANGES was removed in symfony/http-foundation v7.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Request::getContentType
Use getContentTypeFormat instead. packagist.org - Removed
Symfony\Component\HttpFoundation\Request::SUB_REQUEST_TRUSTED_HEADER_SET
Symfony\Component\HttpFoundation\Request::SUB_REQUEST_TRUSTED_HEADER_SET was removed in symfony/http-foundation v7.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\RequestMatcher
Use ChainRequestMatcher instead. packagist.org - Removed
Symfony\Component\HttpFoundation\RequestStack::resetRequestFormats
Symfony\Component\HttpFoundation\RequestStack::resetRequestFormats was removed in symfony/http-foundation v7.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__serialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__serialize was removed in symfony/http-foundation v7.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__unserialize
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::__unserialize was removed in symfony/http-foundation v7.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::create_sid
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::create_sid was removed in symfony/http-foundation v7.0.0 packagist.org - Removed
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::updateTimestamp
Symfony\Component\HttpFoundation\Session\Storage\Handler\AbstractSessionHandler::updateTimestamp was removed in symfony/http-foundation v7.0.0 packagist.org
And 176 more in this version. Sign up to see every change
symfony/http-foundation v7.0.0-BETA3 breaking changes
- Behavior changed
Exception messages no longer show full DSNs. Code that parses these messages to read DSN values must change. github.com
symfony/http-foundation v7.0.0-BETA1 breaking changes
- Removed
The package now requires PHP 8.2 or later. Projects on older PHP versions must upgrade PHP before upgrading. github.com - Removed
Deprecated classes, methods and behaviors are removed in this major release. Code relying on them must be updated. github.com - Removed
Remaining deprecated code paths were removed in this major release. Code relying on them must be updated. github.com - Removed
Deprecated classes, methods and behaviors were removed in this major release. Code that still uses them must be updated to their replacements. github.com - Removed
UriSigner
UriSigner now lives in the HttpFoundation package. Code that imports it from HttpKernel must update the import. github.com - Signature changed
Methods gained native return types, so subclasses overriding them with incompatible return types will fail. Update overriding methods to match. github.com - Signature changed
Public and protected properties received type declarations. Subclasses redeclaring these properties without matching types must be updated. github.com - Signature changed
Methods now declare native PHP return types. Subclasses overriding them must add matching return types. github.com
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.