symfony/security-csrf breaking changes
symfony/security-csrf v8.0.0-BETA1 (November 27, 2025) is its newest release with breaking changes, 2 of them. The first: symfony/security-csrf 8.0.0-BETA1 requires PHP 8.4 or later. Every breaking API change we have recorded in symfony/security-csrf on Packagist: 7 breaking changes in 3 versions. Below, its 3 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.
- From v7.0.0 to v8.0.0-BETA1: 2 breaking changes in 1 version.
symfony/security-csrf v8.0.0-BETA1 breaking changes
- Removed
Symfony 8 now requires PHP 8.4 or newer, so code running on older PHP versions must upgrade PHP before moving to this release. github.com - Removed
Symfony 8 drops support for older PHP versions and requires PHP 8.4 or later. Upgrade PHP before updating this package. github.com
symfony/security-csrf v7.0.0 breaking changes
- Signature changed
Symfony\Component\Security\Csrf\CsrfTokenManager::__construct
Was public function __construct(?TokenGeneratorInterface $generator = null, ?TokenStorageInterface $storage = null, string|RequestStack|callable|null $namespace = null); now public function __construct(TokenGeneratorInterface $generator =... packagist.org - Signature changed
Symfony\Component\Security\Csrf\TokenStorage\ClearableTokenStorageInterface::clear
Was public function clear(); now public function clear(): void. packagist.org - Signature changed
Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface::setToken
Was public function setToken(string $tokenId, #[\SensitiveParameter] string $token); now public function setToken(string $tokenId, #[\SensitiveParameter] string $token): void. packagist.org
symfony/security-csrf v7.0.0-BETA1 breaking changes
- Removed
The package no longer supports PHP versions below 8.2, so code on older PHP must upgrade before using this release. github.com - Signature changed
Methods gained native return types, so subclasses overriding them may need 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.