Skip to content

Commit af70cf6

Browse files
committed
fixed some deprecation messages
1 parent 4c24922 commit af70cf6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Tests/Writer/TranslationWriterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TranslationWriterTest extends TestCase
2020
{
2121
/**
2222
* @group legacy
23-
* @expectedDeprecation Method Symfony\Component\Translation\Writer\TranslationWriter::writeTranslations() is deprecated since version 3.4 and will be removed in 4.0. Use write() instead.
23+
* @expectedDeprecation Method Symfony\Component\Translation\Writer\TranslationWriter::writeTranslations() is deprecated since Symfony 3.4 and will be removed in 4.0. Use write() instead.
2424
*/
2525
public function testWriteTranslations()
2626
{

Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct($locale, $formatter = null, $cacheDir = null, $debug
8787

8888
if ($formatter instanceof MessageSelector) {
8989
$formatter = new MessageFormatter($formatter);
90-
@trigger_error(sprintf('Passing a "%s" instance into the "%s" as a second argument is deprecated since version 3.4 and will be removed in 4.0. Inject a "%s" implementation instead.', MessageSelector::class, __METHOD__, MessageFormatterInterface::class), E_USER_DEPRECATED);
90+
@trigger_error(sprintf('Passing a "%s" instance into the "%s" as a second argument is deprecated since Symfony 3.4 and will be removed in 4.0. Inject a "%s" implementation instead.', MessageSelector::class, __METHOD__, MessageFormatterInterface::class), E_USER_DEPRECATED);
9191
} elseif (null === $formatter) {
9292
$formatter = new MessageFormatter();
9393
}

Writer/TranslationWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function write(MessageCatalogue $catalogue, $format, $options = array())
9797
*/
9898
public function writeTranslations(MessageCatalogue $catalogue, $format, $options = array())
9999
{
100-
@trigger_error(sprintf('Method %s() is deprecated since version 3.4 and will be removed in 4.0. Use write() instead.', __METHOD__), E_USER_DEPRECATED);
100+
@trigger_error(sprintf('Method %s() is deprecated since Symfony 3.4 and will be removed in 4.0. Use write() instead.', __METHOD__), E_USER_DEPRECATED);
101101
$this->write($catalogue, $format, $options);
102102
}
103103
}

0 commit comments

Comments
 (0)