Skip to content

Commit da6fd64

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [FrameworkBundle] Trigger deprecations on stderr instead of using trigger_deprecation call Fix wait duration for fixed window policy
2 parents 6edcc99 + 6f2178f commit da6fd64

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
@@ -156,11 +156,11 @@ protected function execute(InputInterface $input, OutputInterface $output): int
156156
$xliffVersion = $input->getOption('xliff-version') ?? '1.2';
157157

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

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

166166
if (\in_array($format, array_keys(self::FORMATS), true)) {

0 commit comments

Comments
 (0)