diff --git a/UPGRADE-8.0.md b/UPGRADE-8.0.md index 27805678bb09e..1a0fb23c89891 100644 --- a/UPGRADE-8.0.md +++ b/UPGRADE-8.0.md @@ -491,6 +491,7 @@ Translation TwigBridge ---------- + * Remove support for passing a tag to the constructor of `FormThemeNode` * Remove `text` format from the `debug:twig` command, use the `txt` format instead TwigBundle diff --git a/src/Symfony/Bridge/Twig/CHANGELOG.md b/src/Symfony/Bridge/Twig/CHANGELOG.md index d6d929cb50ed6..99b3d157ab4f5 100644 --- a/src/Symfony/Bridge/Twig/CHANGELOG.md +++ b/src/Symfony/Bridge/Twig/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +8.0 +--- + + * Remove support for passing a tag to the constructor of `FormThemeNode` + 7.3 --- diff --git a/src/Symfony/Bridge/Twig/Node/FormThemeNode.php b/src/Symfony/Bridge/Twig/Node/FormThemeNode.php index 9d9bce1e64fcf..2fbb50699ca7c 100644 --- a/src/Symfony/Bridge/Twig/Node/FormThemeNode.php +++ b/src/Symfony/Bridge/Twig/Node/FormThemeNode.php @@ -22,18 +22,8 @@ #[YieldReady] final class FormThemeNode extends Node { - /** - * @param bool $only - */ - public function __construct(Node $form, Node $resources, int $lineno, $only = false) + public function __construct(Node $form, Node $resources, int $lineno, bool $only = false) { - if (null === $only || \is_string($only)) { - trigger_deprecation('symfony/twig-bridge', '3.12', 'Passing a tag to %s() is deprecated.', __METHOD__); - $only = \func_num_args() > 4 ? func_get_arg(4) : true; - } elseif (!\is_bool($only)) { - throw new \TypeError(\sprintf('Argument 4 passed to "%s()" must be a boolean, "%s" given.', __METHOD__, get_debug_type($only))); - } - parent::__construct(['form' => $form, 'resources' => $resources], ['only' => $only], $lineno); } diff --git a/src/Symfony/Bridge/Twig/composer.json b/src/Symfony/Bridge/Twig/composer.json index 73286baf1b078..408e3d5c6abab 100644 --- a/src/Symfony/Bridge/Twig/composer.json +++ b/src/Symfony/Bridge/Twig/composer.json @@ -17,7 +17,6 @@ ], "require": { "php": ">=8.4", - "symfony/deprecation-contracts": "^2.5|^3", "symfony/translation-contracts": "^2.5|^3", "twig/twig": "^3.21" },
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: