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

# 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

Latest version `v8.2.0`, released November 28, 2026. MIT license. [Source repository](https://github.com/symfony/mime)

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

## symfony/mime v8.0.0 breaking changes

symfony/mime v8.0.0, released November 27, 2025: 4 breaking changes.

- **Removed** `Symfony\Component\Mime\Part\SMimePart::__sleep`  

Use \_\_serialize instead. [packagist.org](https://packagist.org/packages/symfony/mime#v8.0.0)
- **Removed** `Symfony\Component\Mime\Part\SMimePart::__wakeup`  

Use \_\_unserialize instead. [packagist.org](https://packagist.org/packages/symfony/mime#v8.0.0)
- **Removed** `Symfony\Component\Mime\Part\TextPart::__sleep`  

Use \_\_serialize instead. [packagist.org](https://packagist.org/packages/symfony/mime#v8.0.0)
- **Removed** `Symfony\Component\Mime\Part\TextPart::__wakeup`  

Use \_\_unserialize instead. [packagist.org](https://packagist.org/packages/symfony/mime#v8.0.0)

## symfony/mime v8.0.0-BETA1 breaking changes

symfony/mime v8.0.0-BETA1, released November 27, 2025: 1 breaking change.

- **Removed**  

Symfony 8 requires PHP 8.4 or later. Projects on older PHP versions must upgrade PHP before upgrading this package. [github.com](https://github.com/symfony/mime/releases/tag/v8.0.0-BETA1)

## symfony/mime v7.0.0 breaking changes

symfony/mime v7.0.0, released November 29, 2023: 14 breaking changes.

- **Removed** `Symfony\Component\Mime\Email::attachPart`  

Use addPart instead. [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Removed** `Symfony\Component\Mime\Part\MessagePart::__serialize`  

Symfony\\Component\\Mime\\Part\\MessagePart::\_\_serialize was removed in symfony/mime v7.0.0 [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Removed** `Symfony\Component\Mime\Part\MessagePart::__unserialize`  

Symfony\\Component\\Mime\\Part\\MessagePart::\_\_unserialize was removed in symfony/mime v7.0.0 [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Removed** `Symfony\Component\Mime\RawMessage::__destruct`  

Symfony\\Component\\Mime\\RawMessage::\_\_destruct was removed in symfony/mime v7.0.0 [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Signature changed** `Symfony\Component\Mime\DependencyInjection\AddMimeTypeGuesserPass::process`  

Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Signature changed** `Symfony\Component\Mime\Header\HeaderInterface::setBody`  

Was public function setBody(mixed $body); now public function setBody(mixed $body): void. [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Signature changed** `Symfony\Component\Mime\Header\HeaderInterface::setCharset`  

Was public function setCharset(string $charset); now public function setCharset(string $charset): void. [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Signature changed** `Symfony\Component\Mime\Header\HeaderInterface::setLanguage`  

Was public function setLanguage(string $lang); now public function setLanguage(string $lang): void. [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Signature changed** `Symfony\Component\Mime\Header\HeaderInterface::setMaxLineLength`  

Was public function setMaxLineLength(int $lineLength); now public function setMaxLineLength(int $lineLength): void. [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)
- **Signature changed** `Symfony\Component\Mime\Header\UnstructuredHeader::setValue`  

Was public function setValue(string $value); now public function setValue(string $value): void. [packagist.org](https://packagist.org/packages/symfony/mime#v7.0.0)

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

## symfony/mime v7.0.0-BETA1 breaking changes

symfony/mime v7.0.0-BETA1, released November 29, 2023: 5 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](https://github.com/symfony/mime/releases/tag/v7.0.0-BETA1)
- **Removed**  

The package now requires PHP 8.2 or later; upgrade PHP before updating. [github.com](https://github.com/symfony/mime/releases/tag/v7.0.0-BETA1)
- **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](https://github.com/symfony/mime/releases/tag/v7.0.0-BETA1)
- **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](https://github.com/symfony/mime/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Methods across components now declare native return types, which can break subclasses or overrides that declare incompatible return types. [github.com](https://github.com/symfony/mime/releases/tag/v7.0.0-BETA1)

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