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

# symfony/security-core breaking changes

symfony/security-core v8.0.0 (November 27, 2025) is its newest release with breaking changes, 21 of them. The first: Removed Symfony\\Component\\Security\\Core\\Authentication\\RememberMe\\PersistentTokenInterface::getClass. Every breaking API change we have recorded in symfony/security-core on Packagist: 87 breaking changes in 4 versions. Below, its 4 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/security-core)

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

## symfony/security-core v8.0.0 breaking changes

symfony/security-core v8.0.0, released November 27, 2025: 21 breaking changes.

- **Removed** `Symfony\Component\Security\Core\Authentication\RememberMe\PersistentTokenInterface::getClass`  

The getClass() method was removed from PersistentTokenInterface. Stop calling it and use the remaining token data instead. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Removed** `Symfony\Component\Security\Core\Authentication\Token\RememberMeToken::getSecret`  

The deprecated getSecret() method is removed from RememberMeToken. Remove calls to it. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Removed** `Symfony\Component\Security\Core\Authentication\Token\TokenInterface::eraseCredentials`  

eraseCredentials() was removed from TokenInterface. Erase credentials e.g. using \_\_serialize() instead. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Removed** `Symfony\Component\Security\Core\User\UserInterface::eraseCredentials`  

eraseCredentials() was removed from UserInterface. Erase credentials e.g. using \_\_serialize() instead. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Behavior changed**  

The user FQCN was removed from the remember-me cookie, so existing cookies and code reading it may behave differently. [github.com](https://github.com/symfony/security-core/blob/v8.0.0/CHANGELOG.md)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface::createNewToken`  

Was public function createNewToken(PersistentTokenInterface $token); now public function createNewToken(PersistentTokenInterface $token): void. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface::deleteTokenBySeries`  

Was public function deleteTokenBySeries(string $series); now public function deleteTokenBySeries(string $series): void. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface::loadTokenBySeries`  

Was public function loadTokenBySeries(string $series); now public function loadTokenBySeries(string $series): PersistentTokenInterface. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\TokenProviderInterface::updateToken`  

Was public function updateToken(string $series, #\[\\SensitiveParameter\] string $tokenValue, \\DateTimeInterface $lastUsed); now public function updateToken(string $series, #\[\\SensitiveParameter\] string $tokenValue, \\DateTimeInterface... [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\Token\AbstractToken`  

Was abstract class AbstractToken implements TokenInterface; now abstract class AbstractToken implements TokenInterface, \\Serializable. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface::decide`  

decide() gained a new $accessDecision argument, so implementations must update their signature. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface::isGranted`  

isGranted() gained a new $accessDecision argument, so implementations must update their signature. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authorization\Strategy\AccessDecisionStrategyInterface::decide`  

decide() gained a new $accessDecision argument, so implementations must update their signature. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authorization\Voter\ClosureVoter::__construct`  

Was public function \_\_construct(private AuthorizationCheckerInterface $authorizationChecker, private ?AccessDecisionManagerInterface $accessDecisionManager = null, private ?TokenStorageInterface $tokenStorage = null); now public function... [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter::__construct`  

Was public function \_\_construct(private ExpressionLanguage $expressionLanguage, private ?AuthenticationTrustResolverInterface $trustResolver, private AuthorizationCheckerInterface $authChecker, private ?RoleHierarchyInterface... [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authorization\Voter\Voter::voteOnAttribute`  

voteOnAttribute() gained a new $vote argument, so overriding implementations must update their signature. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authorization\Voter\VoterInterface::vote`  

vote() gained a new $vote argument, so implementations must update their signature. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Signature\ExpiredSignatureStorage::incrementUsages`  

Was public function incrementUsages(string $hash): int; now public function incrementUsages(string $hash): void. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\User\ChainUserProvider`  

Was class ChainUserProvider implements UserProviderInterface, PasswordUpgraderInterface; now class ChainUserProvider implements AttributesBasedUserProviderInterface, PasswordUpgraderInterface. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\User\ChainUserProvider::loadUserByIdentifier`  

Was public function loadUserByIdentifier(string $identifier/\*, array $attributes = \[\] \*/): UserInterface; now public function loadUserByIdentifier(string $identifier, array $attributes = \[\]): UserInterface. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Signature changed** `Symfony\Component\Security\Core\User\UserCheckerInterface::checkPostAuth`  

checkPostAuth() gained a new $token argument, so implementations must update their signature. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)

## symfony/security-core v8.0.0-BETA1 breaking changes

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

- **Removed**  

Validator constraints no longer support generic option handling. Pass constraint options explicitly. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Removed**  

Validator no longer supports generic constraint option handling, so constraints relying on it must be updated. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Removed**  

Symfony 8 requires PHP 8.4 or later. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Removed**  

Validator constraints no longer accept generic options. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Removed** `Symfony\Component\Security\Core\Authentication\Token\RememberMeToken::getSecret`  

The deprecated getSecret() method was removed from RememberMeToken. Stop calling it. [packagist.org](https://packagist.org/packages/symfony/security-core#v8.0.0)
- **Behavior changed**  

Symfony 8 requires PHP 8.4 or newer. Upgrade PHP before updating. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Behavior changed**  

Methods now enforce declared return types, which may break custom code that returns other types. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

Symfony 8 requires PHP 8.4 or later, so older PHP versions can no longer run this package. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Signature changed**  

Return types are now enforced across components, so overriding methods must declare compatible return types. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)
- **Signature changed**  

Return types are now enforced across components. Custom subclasses with mismatched return types may break. [github.com](https://github.com/symfony/security-core/releases/tag/v8.0.0-BETA1)

## symfony/security-core v7.0.0 breaking changes

symfony/security-core v7.0.0, released November 29, 2023: 41 breaking changes.

- **Removed** `Symfony\Component\Security\Core\Security`  

Use \\Symfony\\Bundle\\SecurityBundle\\Security instead. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider`  

Was class InMemoryTokenProvider implements TokenProviderInterface; now final class InMemoryTokenProvider implements TokenProviderInterface. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider::createNewToken`  

Was public function createNewToken(PersistentTokenInterface $token); now public function createNewToken(PersistentTokenInterface $token): void. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider::deleteTokenBySeries`  

Was public function deleteTokenBySeries(string $series); now public function deleteTokenBySeries(string $series): void. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider::updateToken`  

Was public function updateToken(string $series, #\[\\SensitiveParameter\] string $tokenValue, \\DateTime $lastUsed); now public function updateToken(string $series, #\[\\SensitiveParameter\] string $tokenValue, \\DateTimeInterface $lastUsed): void. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\Token\AbstractToken`  

Was abstract class AbstractToken implements TokenInterface; now abstract class AbstractToken implements TokenInterface, \\Serializable. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\Token\NullToken::setAttribute`  

Was public function setAttribute(string $name, mixed $value); now public function setAttribute(string $name, mixed $value): never. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\Token\NullToken::setAttributes`  

Was public function setAttributes(array $attributes); now public function setAttributes(array $attributes): never. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\Token\NullToken::setUser`  

Was public function setUser(UserInterface $user); now public function setUser(UserInterface $user): never. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)
- **Signature changed** `Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage::reset`  

Was public function reset(); now public function reset(): void. [packagist.org](https://packagist.org/packages/symfony/security-core#v7.0.0)

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

## symfony/security-core v7.0.0-BETA1 breaking changes

symfony/security-core v7.0.0-BETA1, released November 29, 2023: 15 breaking changes.

- **Removed**  

The package now requires PHP 8.2 or later, so PHP 8.1 and earlier can no longer be used. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Removed**  

Remaining deprecated code paths were removed, so code relying on them must be updated. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Removed**  

Experimental classes were removed, so code using them must be updated. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Removed**  

Deprecated Security code paths were removed, so code relying on them must be updated. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Removed**  

The remaining experimental classes were removed. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Removed**  

Remaining deprecated code paths were removed across components. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Removed**  

Deprecated code paths in the Security component were removed, so code relying on them must be updated. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Behavior changed** `PersistentToken`  

PersistentToken is now immutable, so code that modifies it must create new instances instead. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Configuration changed**  

The package now requires PHP 8.2 or later, so older PHP versions can no longer be used. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Public and protected properties gained types, which can break subclasses that declare them without types. [github.com](https://github.com/symfony/security-core/releases/tag/v7.0.0-BETA1)

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

## 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.
