tweak some deprecation messages
This commit is contained in:
parent
d93e513707
commit
536045f865
@ -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