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
This commit is contained in:
commit
5aa1233d0b
@ -47,7 +47,7 @@ class DelegatingLoader extends BaseDelegatingLoader
|
||||
$this->logger = $resolver;
|
||||
$resolver = $r;
|
||||
|
||||
@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);
|
||||
@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);
|
||||
}
|
||||
|
||||
parent::__construct($resolver);
|
||||
|
@ -22,7 +22,7 @@ class ThrowingCasterException extends \Exception
|
||||
public function __construct($prev, \Exception $e = null)
|
||||
{
|
||||
if (!$prev instanceof \Exception) {
|
||||
@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);
|
||||
@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);
|
||||
|
||||
$prev = $e;
|
||||
}
|
||||
|
Reference in New Issue
Block a user