tweak some deprecation messages

This commit is contained in:
Christian Flothmann 2015-10-06 17:55:17 +02:00
parent d93e513707
commit 536045f865
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}