8000 minor #16151 [FrameworkBundle][VarDumper] tweak some deprecation mess… · symfony/symfony@5aa1233 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5aa1233

Browse files
committed
minor #16151 [FrameworkBundle][VarDumper] tweak some deprecation messages (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [FrameworkBundle][VarDumper] tweak some deprecation messages | Q | A | ------------- | --- | Fixed tickets | #16129, #16135 | License | MIT I was a bit too slow with reviewing. Commits ------- 536045f tweak some deprecation messages
2 parents d93e513 + 536045f commit 5aa1233

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct(ControllerNameParser $parser, $resolver, $r = null)
4747
$this->logger = $resolver;
4848
$resolver = $r;
4949

50-
@trigger_error('Passing a LoggerInterface instance a second argument of the '.__METHOD__.' method is deprecated since version 2.8 and will not be supported anymore in 3.0.', E_USER_DEPRECATED);
50+
@trigger_error('Passing a LoggerInterface instance as the second argument of the '.__METHOD__.' method is deprecated since version 2.8 and will not be supported anymore in 3.0.', E_USER_DEPRECATED);
5151
}
5252

5353
parent::__construct($resolver);

src/Symfony/Component/VarDumper/Exception/ThrowingCasterException.php

Lines cha 7499 nged: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ThrowingCasterException extends \Exception
2222
public function __construct($prev, \Exception $e = null)
2323
{
2424
if (!$prev instanceof \Exception) {
25-
@trigger_error('Providing $caster a 1st argument when instanciating a '.__CLASS__.' is deprecated since version 2.8 and will be removed in 3.0. Provide directly the $prev exception instead.', E_USER_DEPRECATED);
25+
@trigger_error('Providing $caster as the first argument of the '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Provide directly the $prev exception instead.', E_USER_DEPRECATED);
2626

2727
$prev = $e;
2828
}

0 commit comments

Comments
 (0)
0