Skip to content

Commit b98bc62

Browse files
committed
improve deprecation messages
1 parent b6d8164 commit b98bc62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dumper/FileDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function setRelativePathTemplate($relativePathTemplate)
5151
*/
5252
public function setBackup($backup)
5353
{
54-
@trigger_error(sprintf('The %s() method is deprecated since Symfony 4.1.', __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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function addDumper($format, DumperInterface $dumper)
4343
*/
4444
public function disableBackup()
4545
{
46-
@trigger_error(sprintf('The %s() method is deprecated since Symfony 4.1.', __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)