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

# symfony/cache breaking changes

symfony/cache v8.0.0 (November 27, 2025) is its newest release with breaking changes, 11 of them. The first: Removed Symfony\\Component\\Cache\\Adapter\\CouchbaseBucketAdapter. Every breaking API change we have recorded in symfony/cache on Packagist: 53 breaking changes in 6 versions. Below, its 6 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/cache)

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): 16 breaking changes in 2 versions.

## symfony/cache v8.0.0 breaking changes

symfony/cache v8.0.0, released November 27, 2025: 11 breaking changes.

- **Removed** `Symfony\Component\Cache\Adapter\CouchbaseBucketAdapter`  

Symfony\\Component\\Cache\\Adapter\\CouchbaseBucketAdapter was removed in symfony/cache v8.0.0 [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Removed** `Symfony\Component\Cache\CacheItem::$clock`  

Symfony\\Component\\Cache\\CacheItem::$clock was removed in symfony/cache v8.0.0 [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\AbstractAdapter::createConnection`  

Was public static function createConnection(#\[\\SensitiveParameter\] string $dsn, #\[\\SensitiveParameter\] array $options = \[\]): mixed; now public static function createConnection(#\[\\SensitiveParameter\] string $dsn, array $options = \[\]): mixed. [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\CouchbaseCollectionAdapter::createConnection`  

Was public static function createConnection(#\[\\SensitiveParameter\] array|string $dsn, #\[\\SensitiveParameter\] array $options = \[\]): Bucket|Collection; now public static function createConnection(#\[\\SensitiveParameter\] array|string $dsn... [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\DoctrineDbalAdapter::__construct`  

Was public function \_\_construct(#\[\\SensitiveParameter\] Connection|string $connOrDsn, private string $namespace = '', int $defaultLifetime = 0, array $options = \[\], ?MarshallerInterface $marshaller = null); now public function... [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\DoctrineDbalAdapter::configureSchema`  

Was public function configureSchema(Schema $schema, Connection $forConnection, \\Closure $isSameDatabase); now public function configureSchema(Schema $schema, Connection $forConnection, \\Closure $isSameDatabase): void. [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\MemcachedAdapter::createConnection`  

Was public static function createConnection(#\[\\SensitiveParameter\] array|string $servers, #\[\\SensitiveParameter\] array $options = \[\]): \\Memcached; now public static function createConnection(#\[\\SensitiveParameter\] array|string $servers... [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\PdoAdapter::__construct`  

Was public function \_\_construct(#\[\\SensitiveParameter\] \\PDO|string $connOrDsn, string $namespace = '', int $defaultLifetime = 0, #\[\\SensitiveParameter\] array $options = \[\], ?MarshallerInterface $marshaller = null); now public function... [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\LockRegistry::compute`  

Was public static function compute(callable $callback, ItemInterface $item, bool &$save, CacheInterface $pool, ?\\Closure $setMetadata = null, ?LoggerInterface $logger = null, ?float $beta = null): mixed; now public static function... [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Messenger\EarlyExpirationDispatcher::__invoke`  

Was public function \_\_invoke(callable $callback, CacheItem $item, bool &$save, AdapterInterface $pool, \\Closure $setMetadata, ?LoggerInterface $logger = null, ?float $beta = null): mixed; now public function \_\_invoke(callable $callback... [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)
- **Signature changed** `Symfony\Component\Cache\Messenger\EarlyExpirationHandler::__invoke`  

Was public function \_\_invoke(EarlyExpirationMessage $message); now public function \_\_invoke(EarlyExpirationMessage $message): void. [packagist.org](https://packagist.org/packages/symfony/cache#v8.0.0)

## symfony/cache v8.0.0-BETA1 breaking changes

symfony/cache v8.0.0-BETA1, released November 27, 2025: 5 breaking changes.

- **Removed**  

Symfony 8 requires PHP 8.4 or later. Users on older PHP versions must upgrade PHP before upgrading. [github.com](https://github.com/symfony/cache/releases/tag/v8.0.0-BETA1)
- **Removed** `CouchbaseBucketAdapter`  

The deprecated CouchbaseBucketAdapter was removed in 8.0.0. Code that uses it must switch to another cache adapter. [github.com](https://github.com/symfony/cache/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

Symfony 8 requires PHP 8.4 or newer. Projects on older PHP versions must upgrade PHP before moving to this release. [github.com](https://github.com/symfony/cache/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

The cache component now requires ext-relay 0.12 or later. Users of the Relay adapter must upgrade the extension. [github.com](https://github.com/symfony/cache/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

The cache component now requires ext-relay 0.12 or later. Upgrade the extension before updating. [github.com](https://github.com/symfony/cache/releases/tag/v8.0.0-BETA1)

## symfony/cache v7.0.0 breaking changes

symfony/cache v7.0.0, released November 29, 2023: 29 breaking changes.

- **Removed** `Symfony\Component\Cache\Adapter\TagAwareAdapter::__serialize`  

Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter::\_\_serialize was removed in symfony/cache v7.0.0 [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Removed** `Symfony\Component\Cache\Adapter\TagAwareAdapter::__unserialize`  

Symfony\\Component\\Cache\\Adapter\\TagAwareAdapter::\_\_unserialize was removed in symfony/cache v7.0.0 [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\AbstractAdapter::createConnection`  

Was public static function createConnection(#\[\\SensitiveParameter\] string $dsn, #\[\\SensitiveParameter\] array $options = \[\]): mixed; now public static function createConnection(#\[\\SensitiveParameter\] string $dsn, array $options = \[\]): mixed. [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\ApcuAdapter::isSupported`  

Was public static function isSupported(); now public static function isSupported(): bool. [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\ArrayAdapter::reset`  

Was public function reset(); now public function reset(): void. [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\ChainAdapter::reset`  

Was public function reset(); now public function reset(): void. [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\CouchbaseBucketAdapter::createConnection`  

Was public static function createConnection(#\[\\SensitiveParameter\] array|string $servers, #\[\\SensitiveParameter\] array $options = \[\]): \\CouchbaseBucket; now public static function createConnection(#\[\\SensitiveParameter\] array|string... [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\CouchbaseCollectionAdapter::createConnection`  

Was public static function createConnection(#\[\\SensitiveParameter\] array|string $dsn, #\[\\SensitiveParameter\] array $options = \[\]): Bucket|Collection; now public static function createConnection(#\[\\SensitiveParameter\] array|string $dsn... [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\DoctrineDbalAdapter::__construct`  

Was public function \_\_construct(#\[\\SensitiveParameter\] Connection|string $connOrDsn, string $namespace = '', int $defaultLifetime = 0, array $options = \[\], ?MarshallerInterface $marshaller = null); now public function... [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)
- **Signature changed** `Symfony\Component\Cache\Adapter\MemcachedAdapter::createConnection`  

Was public static function createConnection(#\[\\SensitiveParameter\] array|string $servers, #\[\\SensitiveParameter\] array $options = \[\]): \\Memcached; now public static function createConnection(#\[\\SensitiveParameter\] array|string $servers... [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)

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

## symfony/cache v7.0.0-RC2 breaking changes

symfony/cache v7.0.0-RC2, released November 29, 2023: 3 breaking changes.

- **Behavior changed**  

The cache no longer detects the database server version. Code that relied on this detection must now handle the database setup itself. [github.com](https://github.com/symfony/cache/releases/tag/v7.0.0-RC2)
- **Behavior changed**  

Passwords in RedisTrait DSNs are now URL-decoded. DSN passwords that contain percent-encoded characters will be read differently than before. [github.com](https://github.com/symfony/cache/releases/tag/v7.0.0-RC2)
- **Behavior changed** `RedisTrait`  

Passwords in the Redis DSN are now URL-decoded. Passwords containing percent-encoded characters may now resolve differently and should be checked. [github.com](https://github.com/symfony/cache/releases/tag/v7.0.0-RC2)

## symfony/cache v7.0.0-BETA3 breaking changes

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

- **Behavior changed**  

Exception messages no longer contain the full DSN. Code that parses or logs these messages may see different text. [github.com](https://github.com/symfony/cache/releases/tag/v7.0.0-BETA3)

## symfony/cache v7.0.0-BETA1 breaking changes

symfony/cache v7.0.0-BETA1, released November 29, 2023: 4 breaking changes.

- **Removed**  

The package now requires PHP 8.2 or later. Projects on older PHP versions must upgrade before using this release. [github.com](https://github.com/symfony/cache/releases/tag/v7.0.0-BETA1)
- **Behavior changed**  

The package now requires PHP 8.2 as a minimum. Projects on older PHP versions must upgrade PHP before using this version. [github.com](https://github.com/symfony/cache/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Methods now declare native return types, which can break subclasses that override them with different return types. [github.com](https://github.com/symfony/cache/releases/tag/v7.0.0-BETA1)
- **Signature changed** `Symfony\Component\Cache\Adapter\DoctrineDbalAdapter::configureSchema`  

configureSchema() methods gained an $isSameDatabase parameter. Code that overrides or calls them should be updated to match the new signature. [packagist.org](https://packagist.org/packages/symfony/cache#v7.0.0)

## 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/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)
- [symfony/debug-bundle](https://since.dev/packages/packagist/symfony/debug-bundle.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.
