Skip to content

Commit 3892fcb

Browse files
[TwigBridge] Remove DebugCommand deprecation
1 parent 65b7b8a commit 3892fcb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Symfony/Bridge/Twig/Command/DebugCommand.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
9393
throw new InvalidArgumentException(\sprintf('Argument "name" not supported, it requires the Twig loader "%s".', FilesystemLoader::class));
9494
}
9595

96-
$format = $input->getOption('format');
97-
if ('text' === $format) {
98-
trigger_deprecation('symfony/twig-bridge', '7.2', 'The "text" format is deprecated, use "txt" instead.');
99-
100-
$format = 'txt';
101-
}
102-
match ($format) {
96+
match ($input->getOption('format')) {
10397
'txt' => $name ? $this->displayPathsText($io, $name) : $this->displayGeneralText($io, $filter),
10498
'json' => $name ? $this->displayPathsJson($io, $name) : $this->displayGeneralJson($io, $filter),
10599
default => throw new InvalidArgumentException(\sprintf('Supported formats are "%s".', implode('", "', $this->getAvailableFormatOptions()))),

0 commit comments

Comments
 (0)