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

# symfony/yaml breaking changes

symfony/yaml v8.0.0 (November 27, 2025) is its newest release with breaking changes, 10 of them. The first: Stops parsing duplicate mapping keys whose value is null in symfony/yaml v8.0.0. Every breaking API change we have recorded in symfony/yaml on Packagist: 33 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/yaml)

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

## symfony/yaml v8.0.0 breaking changes

symfony/yaml v8.0.0, released November 27, 2025: 10 breaking changes.

- **Removed**  

Duplicate mapping keys with null values are no longer supported by the YAML parser. Remove such duplicates from YAML files. [github.com](https://github.com/symfony/yaml/blob/v8.0.0/CHANGELOG.md)
- **Removed** `Symfony\Component\Yaml\Parser::__construct`  

Symfony\\Component\\Yaml\\Parser::\_\_construct was removed in symfony/yaml v8.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)
- **Removed** `Symfony\Component\Yaml\Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS`  

Symfony\\Component\\Yaml\\Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS was removed in symfony/yaml v8.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)
- **Removed** `Symfony\Component\Yaml\Parser::DEFAULT_MAX_NESTING_LEVEL`  

Symfony\\Component\\Yaml\\Parser::DEFAULT_MAX_NESTING_LEVEL was removed in symfony/yaml v8.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)
- **Removed** `Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_ALIAS`  

Symfony\\Component\\Yaml\\Yaml::PARSE_EXCEPTION_ON_ALIAS was removed in symfony/yaml v8.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)
- **Behavior changed**  

Duplicate mapping keys with null values are no longer supported when parsing YAML. [github.com](https://github.com/symfony/yaml/blob/v8.0.0/CHANGELOG.md)
- **Signature changed** `Symfony\Component\Yaml\Exception\ParseException::getParsedFile`  

Was public function getParsedFile(): ?string; now public function getParsedFile(): string. [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)
- **Signature changed** `Symfony\Component\Yaml\Exception\ParseException::getSnippet`  

Was public function getSnippet(): ?string; now public function getSnippet(): string. [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)
- **Signature changed** `Symfony\Component\Yaml\Yaml::parse`  

Was public static function parse(string $input, int $flags = 0, int $maxNestingLevel = Parser::DEFAULT_MAX_NESTING_LEVEL, int $maxAliasesForCollections = Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS): mixed; now public static function... [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)
- **Signature changed** `Symfony\Component\Yaml\Yaml::parseFile`  

Was public static function parseFile(string $filename, int $flags = 0, int $maxNestingLevel = Parser::DEFAULT_MAX_NESTING_LEVEL, int $maxAliasesForCollections = Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS): mixed; now public static... [packagist.org](https://packagist.org/packages/symfony/yaml#v8.0.0)

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

symfony/yaml v8.0.0-BETA1, released November 27, 2025: 7 breaking changes.

- **Removed**  

Symfony 8 requires PHP 8.4 or later. Upgrade PHP before updating the package. [github.com](https://github.com/symfony/yaml/releases/tag/v8.0.0-BETA1)
- **Removed**  

Symfony 8 drops support for PHP versions below 8.4. Upgrade your PHP runtime to 8.4 or later. [github.com](https://github.com/symfony/yaml/releases/tag/v8.0.0-BETA1)
- **Removed** `Application.add`  

The deprecated Application::add() methods are removed. Code calling them must be updated before upgrading. [github.com](https://github.com/symfony/yaml/releases/tag/v8.0.0-BETA1)
- **Behavior changed**  

Duplicate keys in a YAML document now cause a parse error instead of being accepted. Fix any YAML files that repeat keys. [github.com](https://github.com/symfony/yaml/releases/tag/v8.0.0-BETA1)
- **Behavior changed**  

Mappings with duplicate keys now fail to parse instead of being accepted, so YAML input that previously loaded may now throw. [github.com](https://github.com/symfony/yaml/releases/tag/v8.0.0-BETA1)
- **Behavior changed**  

The package now requires PHP 8.4 or newer, so older PHP versions can no longer run it. [github.com](https://github.com/symfony/yaml/releases/tag/v8.0.0-BETA1)
- **Behavior changed**  

The parser now throws a parse error when a mapping contains duplicate keys. Remove duplicate keys from your YAML documents. [github.com](https://github.com/symfony/yaml/releases/tag/v8.0.0-BETA1)

## symfony/yaml v7.0.0 breaking changes

symfony/yaml v7.0.0, released November 29, 2023: 12 breaking changes.

- **Removed** `Symfony\Component\Yaml\Parser::__construct`  

Symfony\\Component\\Yaml\\Parser::\_\_construct was removed in symfony/yaml v7.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Removed** `Symfony\Component\Yaml\Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS`  

Symfony\\Component\\Yaml\\Parser::DEFAULT_MAX_ALIASES_FOR_COLLECTIONS was removed in symfony/yaml v7.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Removed** `Symfony\Component\Yaml\Parser::DEFAULT_MAX_NESTING_LEVEL`  

Symfony\\Component\\Yaml\\Parser::DEFAULT_MAX_NESTING_LEVEL was removed in symfony/yaml v7.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Removed** `Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_ALIAS`  

Symfony\\Component\\Yaml\\Yaml::PARSE_EXCEPTION_ON_ALIAS was removed in symfony/yaml v7.0.0 [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Signature changed** `Symfony\Component\Yaml\Command\LintCommand::configure`  

Was protected function configure(); now protected function configure(): void. [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Signature changed** `Symfony\Component\Yaml\Exception\ParseException::getParsedFile`  

Was public function getParsedFile(): ?string; now public function getParsedFile(): string. [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Signature changed** `Symfony\Component\Yaml\Exception\ParseException::getSnippet`  

Was public function getSnippet(): ?string; now public function getSnippet(): string. [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Signature changed** `Symfony\Component\Yaml\Exception\ParseException::setParsedFile`  

Was public function setParsedFile(string $parsedFile); now public function setParsedFile(string $parsedFile): void. [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Signature changed** `Symfony\Component\Yaml\Exception\ParseException::setParsedLine`  

Was public function setParsedLine(int $parsedLine); now public function setParsedLine(int $parsedLine): void. [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)
- **Signature changed** `Symfony\Component\Yaml\Exception\ParseException::setSnippet`  

Was public function setSnippet(string $snippet); now public function setSnippet(string $snippet): void. [packagist.org](https://packagist.org/packages/symfony/yaml#v7.0.0)

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

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

symfony/yaml v7.0.0-BETA1, released November 29, 2023: 4 breaking changes.

- **Removed**  

Deprecated code paths were removed in this major release, so code relying on them must be updated. [github.com](https://github.com/symfony/yaml/releases/tag/v7.0.0-BETA1)
- **Removed**  

The package no longer supports PHP versions below 8.2, so upgrade PHP to 8.2 or later before using this version. [github.com](https://github.com/symfony/yaml/releases/tag/v7.0.0-BETA1)
- **Configuration changed**  

The package now requires PHP 8.2 or later, so older PHP versions can no longer run it. [github.com](https://github.com/symfony/yaml/releases/tag/v7.0.0-BETA1)
- **Signature changed**  

Methods now declare native return types, which can break subclasses or code that overrides them with different return types. [github.com](https://github.com/symfony/yaml/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.
