---
title: "symfony/http-foundation v8.0.0 Breaking Changes on Packagist"
description: "What each symfony/http-foundation release removed, renamed or changed: 233 breaking changes in 5 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/symfony/http-foundation
last_updated: 2026-12-04
---

# 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

Latest version `v8.2.0`, released November 28, 2026. MIT license. [Source repository](https://github.com/symfony/http-foundation)

Its v8.0.0-BETA1 release requires [PHP 8.4](https://since.dev/calendar/php/8.4.md) or later. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [v7.0.0](#v-v7-0-0) to [v8.0.0](#v-v8-0-0): 38 breaking changes in 2 versions.

## symfony/http-foundation v8.0.0 breaking changes

symfony/http-foundation v8.0.0, released November 27, 2025: 28 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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v8.0.0)

## symfony/http-foundation v8.0.0-BETA1 breaking changes

symfony/http-foundation v8.0.0-BETA1, released November 27, 2025: 10 breaking changes.

- **Removed**  

Symfony 8 requires PHP 8.4 or later, so older PHP versions are no longer supported. [github.com](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **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](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **Removed** `NativeSessionStorage`  

Previously deprecated session options are removed from NativeSessionStorage. Remove them from your configuration. [github.com](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **Removed** `Symfony\Component\HttpFoundation\Request::get`  

Request::get() is removed. Use the ->attributes, ->query or ->request properties directly instead. [packagist.org](https://packagist.org/packages/symfony/http-foundation#v8.0.0)
- **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](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **Behavior changed**  

Symfony 8 requires PHP 8.4 or later. [github.com](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **Behavior changed** `Request.createFromGlobals`  

createFromGlobals() now parses the request body for PUT, DELETE, PATCH and QUERY requests. [github.com](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **Behavior changed** `Request.sendHeaders`  

Calling Request::sendHeaders() after headers have been sent now triggers a PHP warning. [github.com](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

Symfony 8 requires PHP 8.4 or later. Upgrade PHP before updating. [github.com](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)
- **Signature changed**  

New parameters are now declared explicitly on interfaces and methods, which can affect custom implementations. [github.com](https://github.com/symfony/http-foundation/releases/tag/v8.0.0-BETA1)

## symfony/http-foundation v7.0.0 breaking changes

symfony/http-foundation v7.0.0, released November 29, 2023: 186 breaking changes.

- **Removed** `Symfony\Component\HttpFoundation\ExpressionRequestMatcher`  

Use Symfony\\Component\\HttpFoundation\\RequestMatcher\\ExpressionRequestMatcher instead. [packagist.org](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **Removed** `Symfony\Component\HttpFoundation\IpUtils::PRIVATE_RANGES`  

Symfony\\Component\\HttpFoundation\\IpUtils::PRIVATE_RANGES was removed in symfony/http-foundation v7.0.0 [packagist.org](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **Removed** `Symfony\Component\HttpFoundation\Request::getContentType`  

Use getContentTypeFormat instead. [packagist.org](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **Removed** `Symfony\Component\HttpFoundation\RequestMatcher`  

Use ChainRequestMatcher instead. [packagist.org](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **Removed** `Symfony\Component\HttpFoundation\RequestStack::resetRequestFormats`  

Symfony\\Component\\HttpFoundation\\RequestStack::resetRequestFormats was removed in symfony/http-foundation v7.0.0 [packagist.org](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v7.0.0)
- **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](https://packagist.org/packages/symfony/http-foundation#v7.0.0)

And 176 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## symfony/http-foundation v7.0.0-BETA3 breaking changes

symfony/http-foundation v7.0.0-BETA3, released November 29, 2023: 1 breaking change.

- **Behavior changed**  

Exception messages no longer show full DSNs. Code that parses these messages to read DSN values must change. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA3)

## symfony/http-foundation v7.0.0-BETA1 breaking changes

symfony/http-foundation v7.0.0-BETA1, released November 29, 2023: 8 breaking changes.

- **Removed**  

The package now requires PHP 8.2 or later. Projects on older PHP versions must upgrade PHP before upgrading. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)
- **Removed**  

Deprecated classes, methods and behaviors are removed in this major release. Code relying on them must be updated. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)
- **Removed**  

Remaining deprecated code paths were removed in this major release. Code relying on them must be updated. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)
- **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](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)
- **Removed** `UriSigner`  

UriSigner now lives in the HttpFoundation package. Code that imports it from HttpKernel must update the import. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Methods gained native return types, so subclasses overriding them with incompatible return types will fail. Update overriding methods to match. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Public and protected properties received type declarations. Subclasses redeclaring these properties without matching types must be updated. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Methods now declare native PHP return types. Subclasses overriding them must add matching return types. [github.com](https://github.com/symfony/http-foundation/releases/tag/v7.0.0-BETA1)

## Related packages

- [symfony/asset](https://since.dev/packages/packagist/symfony/asset.md)
- [symfony/browser-kit](https://since.dev/packages/packagist/symfony/browser-kit.md)
- [symfony/cache](https://since.dev/packages/packagist/symfony/cache.md)
- [symfony/config](https://since.dev/packages/packagist/symfony/config.md)
- [symfony/console](https://since.dev/packages/packagist/symfony/console.md)
- [symfony/css-selector](https://since.dev/packages/packagist/symfony/css-selector.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
