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

# symfony/twig-bridge breaking changes

symfony/twig-bridge v8.0.0 (November 27, 2025) is its newest release with breaking changes, 3 of them. The first: Removed Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine::reset. Every breaking API change we have recorded in symfony/twig-bridge on Packagist: 40 breaking changes in 5 versions. Below, its 5 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/twig-bridge)

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

## symfony/twig-bridge v8.0.0 breaking changes

symfony/twig-bridge v8.0.0, released November 27, 2025: 3 breaking changes.

- **Removed** `Symfony\Bridge\Twig\Form\TwigRendererEngine::reset`  

Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine::reset was removed in symfony/twig-bridge v8.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v8.0.0)
- **Removed** `Symfony\Bridge\Twig\Form\TwigRendererEngine::setTheme`  

Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine::setTheme was removed in symfony/twig-bridge v8.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v8.0.0)
- **Signature changed** `Symfony\Bridge\Twig\Node\FormThemeNode::__construct`  

Was public function \_\_construct(Node $form, Node $resources, int $lineno, $only = false); now public function \_\_construct(Node $form, Node $resources, int $lineno, bool $only = false). [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v8.0.0)

## symfony/twig-bridge v8.0.0-BETA1 breaking changes

symfony/twig-bridge v8.0.0-BETA1, released November 27, 2025: 5 breaking changes.

- **Removed**  

Symfony 8 requires PHP 8.4 or later. Projects on older PHP versions cannot use this release. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v8.0.0-BETA1)
- **Removed** `FormThemeNode`  

FormThemeNode no longer accepts a tag argument. Remove any code that passes a tag to it. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v8.0.0-BETA1)
- **Configuration changed**  

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

Return types are now enforced on all components. Code overriding methods without matching return types must be updated. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v8.0.0-BETA1)
- **Signature changed**  

Return types are now enforced on all components. Custom subclasses or implementations with mismatched return types must be updated. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v8.0.0-BETA1)

## symfony/twig-bridge v7.0.0 breaking changes

symfony/twig-bridge v7.0.0, released November 29, 2023: 24 breaking changes.

- **Removed** `Symfony\Bridge\Twig\Form\TwigRendererEngine::reset`  

Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine::reset was removed in symfony/twig-bridge v7.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Removed** `Symfony\Bridge\Twig\Form\TwigRendererEngine::setTheme`  

Symfony\\Bridge\\Twig\\Form\\TwigRendererEngine::setTheme was removed in symfony/twig-bridge v7.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Removed** `Symfony\Bridge\Twig\NodeVisitor\TranslationDefaultDomainNodeVisitor::enterNode`  

Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationDefaultDomainNodeVisitor::enterNode was removed in symfony/twig-bridge v7.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Removed** `Symfony\Bridge\Twig\NodeVisitor\TranslationDefaultDomainNodeVisitor::leaveNode`  

Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationDefaultDomainNodeVisitor::leaveNode was removed in symfony/twig-bridge v7.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Removed** `Symfony\Bridge\Twig\NodeVisitor\TranslationNodeVisitor::enterNode`  

Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationNodeVisitor::enterNode was removed in symfony/twig-bridge v7.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Removed** `Symfony\Bridge\Twig\NodeVisitor\TranslationNodeVisitor::leaveNode`  

Symfony\\Bridge\\Twig\\NodeVisitor\\TranslationNodeVisitor::leaveNode was removed in symfony/twig-bridge v7.0.0 [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Signature changed** `Symfony\Bridge\Twig\AppVariable::getFlashes`  

Was public function getFlashes(string|array|null $types = null): array; now public function getFlashes(string|array $types = null): array. [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Signature changed** `Symfony\Bridge\Twig\AppVariable::setDebug`  

Was public function setDebug(bool $debug); now public function setDebug(bool $debug): void. [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Signature changed** `Symfony\Bridge\Twig\AppVariable::setEnvironment`  

Was public function setEnvironment(string $environment); now public function setEnvironment(string $environment): void. [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)
- **Signature changed** `Symfony\Bridge\Twig\AppVariable::setRequestStack`  

Was public function setRequestStack(RequestStack $requestStack); now public function setRequestStack(RequestStack $requestStack): void. [packagist.org](https://packagist.org/packages/symfony/twig-bridge#v7.0.0)

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

## symfony/twig-bridge v7.0.0-BETA3 breaking changes

symfony/twig-bridge v7.0.0-BETA3, released November 29, 2023: 1 breaking change.

- **Behavior changed** `CodeExtension`  

The CodeExtension filters now properly escape their input as a security fix. Output that relied on unescaped input may change. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v7.0.0-BETA3)

## symfony/twig-bridge v7.0.0-BETA1 breaking changes

symfony/twig-bridge v7.0.0-BETA1, released November 29, 2023: 7 breaking changes.

- **Removed**  

This bridge no longer supports Twig 2, so projects still on Twig 2 must upgrade Twig. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v7.0.0-BETA1)
- **Removed**  

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

Twig 2 is no longer supported. Upgrade your Twig dependency to Twig 3 before upgrading. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v7.0.0-BETA1)
- **Behavior changed**  

The generated \<input> HTML no longer includes the self-closing slash. Update any tests or code that depend on the old markup. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v7.0.0-BETA1)
- **Behavior changed**  

Rendered input elements drop the self-closing slash, so tests or code matching the old markup may need updating. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v7.0.0-BETA1)
- **Behavior changed**  

The package now requires PHP 8.2 or later. Upgrade PHP before upgrading this package. [github.com](https://github.com/symfony/twig-bridge/releases/tag/v7.0.0-BETA1)
- **Signature changed** `impersonation_path`  

The impersonation_path() function now requires its argument. Pass the argument explicitly, and use impersonation_url() if you need a full URL. [github.com](https://github.com/symfony/twig-bridge/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.
