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
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/security-core v8.0.0 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 - Removed
Symfony\Component\Security\Core\Authentication\Token\RememberMeToken::getSecret
The deprecated getSecret() method is removed from RememberMeToken. Remove calls to it. packagist.org - Removed
Symfony\Component\Security\Core\Authentication\Token\TokenInterface::eraseCredentials
eraseCredentials() was removed from TokenInterface. Erase credentials e.g. using __serialize() instead. packagist.org - Removed
Symfony\Component\Security\Core\User\UserInterface::eraseCredentials
eraseCredentials() was removed from UserInterface. Erase credentials e.g. using __serialize() instead. packagist.org - Behavior changed
The user FQCN was removed from the remember-me cookie, so existing cookies and code reading it may behave differently. github.com - 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 - 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 - 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 - 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 - Signature changed
Symfony\Component\Security\Core\Authentication\Token\AbstractToken
Was abstract class AbstractToken implements TokenInterface; now abstract class AbstractToken implements TokenInterface, \Serializable. packagist.org - Signature changed
Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface::decide
decide() gained a new $accessDecision argument, so implementations must update their signature. packagist.org - Signature changed
Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface::isGranted
isGranted() gained a new $accessDecision argument, so implementations must update their signature. packagist.org - Signature changed
Symfony\Component\Security\Core\Authorization\Strategy\AccessDecisionStrategyInterface::decide
decide() gained a new $accessDecision argument, so implementations must update their signature. packagist.org - 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 - 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 - 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 - Signature changed
Symfony\Component\Security\Core\Authorization\Voter\VoterInterface::vote
vote() gained a new $vote argument, so implementations must update their signature. packagist.org - 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 - Signature changed
Symfony\Component\Security\Core\User\ChainUserProvider
Was class ChainUserProvider implements UserProviderInterface, PasswordUpgraderInterface; now class ChainUserProvider implements AttributesBasedUserProviderInterface, PasswordUpgraderInterface. packagist.org - 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 - Signature changed
Symfony\Component\Security\Core\User\UserCheckerInterface::checkPostAuth
checkPostAuth() gained a new $token argument, so implementations must update their signature. packagist.org
symfony/security-core v8.0.0-BETA1 breaking changes
- Removed
Validator constraints no longer support generic option handling. Pass constraint options explicitly. github.com - Removed
Validator no longer supports generic constraint option handling, so constraints relying on it must be updated. github.com - Removed
Symfony 8 requires PHP 8.4 or later. github.com - Removed
Validator constraints no longer accept generic options. github.com - Removed
Symfony\Component\Security\Core\Authentication\Token\RememberMeToken::getSecret
The deprecated getSecret() method was removed from RememberMeToken. Stop calling it. packagist.org - Behavior changed
Symfony 8 requires PHP 8.4 or newer. Upgrade PHP before updating. github.com - Behavior changed
Methods now enforce declared return types, which may break custom code that returns other types. github.com - Configuration changed
Symfony 8 requires PHP 8.4 or later, so older PHP versions can no longer run this package. github.com - Signature changed
Return types are now enforced across components, so overriding methods must declare compatible return types. github.com - Signature changed
Return types are now enforced across components. Custom subclasses with mismatched return types may break. github.com
symfony/security-core v7.0.0 breaking changes
- Removed
Symfony\Component\Security\Core\Security
Use \Symfony\Bundle\SecurityBundle\Security instead. packagist.org - Signature changed
Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider
Was class InMemoryTokenProvider implements TokenProviderInterface; now final class InMemoryTokenProvider implements TokenProviderInterface. packagist.org - 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 - 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 - 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 - Signature changed
Symfony\Component\Security\Core\Authentication\Token\AbstractToken
Was abstract class AbstractToken implements TokenInterface; now abstract class AbstractToken implements TokenInterface, \Serializable. packagist.org - 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 - 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 - 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 - Signature changed
Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage::reset
Was public function reset(); now public function reset(): void. packagist.org
And 31 more in this version. Sign up to see every change
symfony/security-core v7.0.0-BETA1 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 - Removed
Remaining deprecated code paths were removed, so code relying on them must be updated. github.com - Removed
Experimental classes were removed, so code using them must be updated. github.com - Removed
Deprecated Security code paths were removed, so code relying on them must be updated. github.com - Removed
The remaining experimental classes were removed. github.com - Removed
Remaining deprecated code paths were removed across components. github.com - Removed
Deprecated code paths in the Security component were removed, so code relying on them must be updated. github.com - Behavior changed
PersistentToken
PersistentToken is now immutable, so code that modifies it must create new instances instead. github.com - Configuration changed
The package now requires PHP 8.2 or later, so older PHP versions can no longer be used. github.com - Signature changed
Public and protected properties gained types, which can break subclasses that declare them without types. github.com
And 5 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.