Skip to content

Commit db7a511

Browse files
committed
made deprecation notices less verbose
1 parent b2256c1 commit db7a511

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ CHANGELOG
44
4.1.0
55
-----
66

7-
* The `FileDumper::setBackup()` method is deprecated and will be removed in 5.0.
8-
* The `TranslationWriter::disableBackup()` method is deprecated and will be removed in 5.0.
7+
* The `FileDumper::setBackup()` method is deprecated.
8+
* The `TranslationWriter::disableBackup()` method is deprecated.
99
* The `XliffFileDumper` will write "name" on the "unit" node when dumping XLIFF 2.0.
1010

1111
4.0.0

Dumper/FileDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public function setRelativePathTemplate($relativePathTemplate)
4747
*
4848
* @param bool
4949
*
50-
* @deprecated since Symfony 4.1, to be removed in 5.0
50+
* @deprecated since Symfony 4.1
5151
*/
5252
public function setBackup($backup)
5353
{
54-
@trigger_error(sprintf('The %s() method is deprecated since Symfony 4.1 and will be removed in 5.0.', __METHOD__), E_USER_DEPRECATED);
54+
@trigger_error(sprintf('The %s() method is deprecated since Symfony 4.1.', __METHOD__), E_USER_DEPRECATED);
5555

5656
if (false !== $backup) {
5757
throw new \LogicException('The backup feature is no longer supported.');

Writer/TranslationWriter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public function addDumper($format, DumperInterface $dumper)
3939
/**
4040
* Disables dumper backup.
4141
*
42-
* @deprecated since Symfony 4.1, to be removed in 5.0
42+
* @deprecated since Symfony 4.1
4343
*/
4444
public function disableBackup()
4545
{
46-
@trigger_error(sprintf('The %s() method is deprecated since Symfony 4.1 and will be removed in 5.0.', __METHOD__), E_USER_DEPRECATED);
46+
@trigger_error(sprintf('The %s() method is deprecated since Symfony 4.1.', __METHOD__), E_USER_DEPRECATED);
4747

4848
foreach ($this->dumpers as $dumper) {
4949
if (method_exists($dumper, 'setBackup')) {

0 commit comments

Comments
 (0)