Skip to content

Commit 7c41f9b

Browse files
committed
Silence invasive deprecation warnings, opt-in for warnings
1 parent 28902f1 commit 7c41f9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Templating/Helper/LogoutUrlHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class LogoutUrlHelper extends Helper
3939
public function __construct($generator, UrlGeneratorInterface $router = null, TokenStorageInterface $tokenStorage = null)
4040
{
4141
if ($generator instanceof ContainerInterface) {
42-
trigger_error('The '.__CLASS__.' constructor will require a LogoutUrlGenerator instead of a ContainerInterface instance in 3.0.', E_USER_DEPRECATED);
42+
@trigger_error('The '.__CLASS__.' constructor will require a LogoutUrlGenerator instead of a ContainerInterface instance in 3.0.', E_USER_DEPRECATED);
4343

4444
if ($generator->has('security.logout_url_generator')) {
4545
$this->generator = $generator->get('security.logout_url_generator');

Twig/Extension/LogoutUrlExtension.php

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

1212
namespace Symfony\Bundle\SecurityBundle\Twig\Extension;
1313

14-
trigger_error('The '.__NAMESPACE__.'\LogoutUrlExtension class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Bridge\Twig\Extension\LogoutUrlExtension instead.', E_USER_DEPRECATED);
14+
@trigger_error('The '.__NAMESPACE__.'\LogoutUrlExtension class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Bridge\Twig\Extension\LogoutUrlExtension instead.', E_USER_DEPRECATED);
1515

1616
use Symfony\Bundle\SecurityBundle\Templating\Helper\LogoutUrlHelper;
1717

0 commit comments

Comments
 (0)