Skip to content

Commit 6f2178f

Browse files
welcoMatticfabpot
authored andcommitted
[FrameworkBundle] Trigger deprecations on stderr instead of using trigger_deprecation call
1 parent 2ff74f8 commit 6f2178f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command/TranslationUpdateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
140140
$xliffVersion = $input->getOption('xliff-version') ?? '1.2';
141141

142142
if ($input->getOption('xliff-version')) {
143-
trigger_deprecation('symfony/framework-bundle', '5.3', 'The "--xliff-version" option is deprecated, use "--format=xlf%d" instead.', 10 * $xliffVersion);
143+
$errorIo->warning(sprintf('The "--xliff-version" option is deprecated since version 5.3, use "--format=xlf%d" instead.', 10 * $xliffVersion));
144144
}
145145

146146
if ($input->getOption('output-format')) {
147-
trigger_deprecation('symfony/framework-bundle', '5.3', 'The "--output-format" option is deprecated, use "--format=xlf%d" instead.', 10 * $xliffVersion);
147+
$errorIo->warning(sprintf('The "--output-format" option is deprecated since version 5.3, use "--format=xlf%d" instead.', 10 * $xliffVersion));
148148
}
149149

150150
switch ($format) {

0 commit comments

Comments
 (0)