symfony/mime breaking changes
symfony/mime v8.0.0 (November 27, 2025) is its newest release with breaking changes, 4 of them. The first: Removed Symfony\Component\Mime\Part\SMimePart::__sleep. Every breaking API change we have recorded in symfony/mime on Packagist: 24 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/mime v8.0.0 breaking changes
- Removed
Symfony\Component\Mime\Part\SMimePart::__sleep
Use __serialize instead. packagist.org - Removed
Symfony\Component\Mime\Part\SMimePart::__wakeup
Use __unserialize instead. packagist.org - Removed
Symfony\Component\Mime\Part\TextPart::__sleep
Use __serialize instead. packagist.org - Removed
Symfony\Component\Mime\Part\TextPart::__wakeup
Use __unserialize instead. packagist.org
symfony/mime v8.0.0-BETA1 breaking changes
- Removed
Symfony 8 requires PHP 8.4 or later. Projects on older PHP versions must upgrade PHP before upgrading this package. github.com
symfony/mime v7.0.0 breaking changes
- Removed
Symfony\Component\Mime\Email::attachPart
Use addPart instead. packagist.org - Removed
Symfony\Component\Mime\Part\MessagePart::__serialize
Symfony\Component\Mime\Part\MessagePart::__serialize was removed in symfony/mime v7.0.0 packagist.org - Removed
Symfony\Component\Mime\Part\MessagePart::__unserialize
Symfony\Component\Mime\Part\MessagePart::__unserialize was removed in symfony/mime v7.0.0 packagist.org - Removed
Symfony\Component\Mime\RawMessage::__destruct
Symfony\Component\Mime\RawMessage::__destruct was removed in symfony/mime v7.0.0 packagist.org - Signature changed
Symfony\Component\Mime\DependencyInjection\AddMimeTypeGuesserPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Component\Mime\Header\HeaderInterface::setBody
Was public function setBody(mixed $body); now public function setBody(mixed $body): void. packagist.org - Signature changed
Symfony\Component\Mime\Header\HeaderInterface::setCharset
Was public function setCharset(string $charset); now public function setCharset(string $charset): void. packagist.org - Signature changed
Symfony\Component\Mime\Header\HeaderInterface::setLanguage
Was public function setLanguage(string $lang); now public function setLanguage(string $lang): void. packagist.org - Signature changed
Symfony\Component\Mime\Header\HeaderInterface::setMaxLineLength
Was public function setMaxLineLength(int $lineLength); now public function setMaxLineLength(int $lineLength): void. packagist.org - Signature changed
Symfony\Component\Mime\Header\UnstructuredHeader::setValue
Was public function setValue(string $value); now public function setValue(string $value): void. packagist.org
And 4 more in this version. Sign up to see every change
symfony/mime v7.0.0-BETA1 breaking changes
- Removed
Deprecated code paths and methods in the Mime component were removed; code relying on them must be updated before upgrading. github.com - Removed
The package now requires PHP 8.2 or later; upgrade PHP before updating. github.com - Behavior changed
Mime messages backed by generators are now forbidden from being reused; code that sends or serializes the same generator-based message twice will fail. github.com - Behavior changed
Mime messages backed by generators are now forbidden from being used more than once. Code that reuses such a message will fail. github.com - Signature changed
Methods across components now declare native return types, which can break subclasses or overrides that declare 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.