Skip to content

Commit 3f292d5

Browse files
committed
added missing E_USER_DEPRECATED argument to trigger_error() calls
1 parent 7ffdb11 commit 3f292d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EventListener/RouterListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct($matcher, RequestContext $context = null, LoggerInte
6868
}
6969

7070
if (!$requestStack instanceof RequestStack) {
71-
trigger_error('The '.__METHOD__.' method now requires a RequestStack instance as '.__CLASS__.'::setRequest method will not be supported anymore in 3.0.');
71+
trigger_error('The '.__METHOD__.' method now requires a RequestStack instance as '.__CLASS__.'::setRequest method will not be supported anymore in 3.0.', E_USER_DEPRECATED);
7272
}
7373

7474
$this->matcher = $matcher;

Log/NullLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\HttpKernel\Log;
1313

14-
trigger_error('The '.__NAMESPACE__.'\NullLogger class is deprecated since version 2.2 and will be removed in 3.0. Use the Psr\Log\NullLogger class instead from the psr/log Composer package.');
14+
trigger_error('The '.__NAMESPACE__.'\NullLogger class is deprecated since version 2.2 and will be removed in 3.0. Use the Psr\Log\NullLogger class instead from the psr/log Composer package.', E_USER_DEPRECATED);
1515

1616
use Psr\Log\NullLogger as PsrNullLogger;
1717

0 commit comments

Comments
 (0)