symfony/string breaking changes
symfony/string v8.0.0 (November 27, 2025) is its newest release with breaking changes, 5 of them. The first: Removed Symfony\Component\String\AbstractString::__sleep. Every breaking API change we have recorded in symfony/string on Packagist: 15 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/string v8.0.0 breaking changes
- Removed
Symfony\Component\String\AbstractString::__sleep
Symfony\Component\String\AbstractString::__sleep was removed in symfony/string v8.0.0 packagist.org - Removed
Symfony\Component\String\LazyString::__sleep
Use __serialize instead. packagist.org - Removed
Symfony\Component\String\UnicodeString::__sleep
Use __unserialize instead. packagist.org - Removed
Symfony\Component\String\UnicodeString::__wakeup
Use __unserialize instead. packagist.org - Behavior changed
String implementations now use __(un)serialize() instead of __sleep/__wakeup for serialization. github.com
symfony/string v8.0.0-BETA1 breaking changes
- Removed
Symfony 8 requires PHP 8.4 or newer, so code must run on PHP 8.4 or later. github.com - Behavior changed
Symfony 8 requires PHP 8.4 or later, so code must run on PHP 8.4 or newer. github.com - Configuration changed
Symfony 8 requires PHP 8.4 or newer, so code must run on PHP 8.4 or later. github.com
symfony/string v7.0.0 breaking changes
- Signature changed
Symfony\Component\String\AbstractString::$ignoreCase
Was protected $ignoreCase; now protected ?bool $ignoreCase. packagist.org - Signature changed
Symfony\Component\String\AbstractString::$string
Was protected $string; now protected string $string. packagist.org - Signature changed
Symfony\Component\String\Slugger\AsciiSlugger::__construct
Was public function __construct(?string $defaultLocale = null, array|\Closure|null $symbolsMap = null); now public function __construct(string $defaultLocale = null, array|\Closure $symbolsMap = null). packagist.org - Signature changed
Symfony\Component\String\Slugger\AsciiSlugger::setLocale
Was public function setLocale(string $locale); now public function setLocale(string $locale): void. packagist.org - Signature changed
Symfony\Component\String\UnicodeString::__wakeup
Was public function __wakeup(); now public function __wakeup(): void. packagist.org
symfony/string v7.0.0-BETA1 breaking changes
- Removed
The package now requires PHP 8.2 or later, so projects on older PHP versions must upgrade PHP before using this release. github.com - Signature changed
Methods now declare native PHP return types, which can break code that overrides these methods with incompatible 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.