Skip to content

Commit 69e80be

Browse files
committed
Fix trigger_error calls
1 parent 1d5557f commit 69e80be

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Symfony/Component/Security/Core/Authorization/AccessDecisionManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
7777
*/
7878
public function supportsAttribute($attribute)
7979
{
80-
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.');
80+
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.', E_USER_DEPRECATED);
8181

8282
foreach ($this->voters as $voter) {
8383
if ($voter->supportsAttribute($attribute)) {
@@ -93,7 +93,7 @@ public function supportsAttribute($attribute)
9393
*/
9494
public function supportsClass($class)
9595
{
96-
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.');
96+
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.', E_USER_DEPRECATED);
9797

9898
foreach ($this->voters as $voter) {
9999
if ($voter->supportsClass($class)) {

src/Symfony/Component/Security/Core/Authorization/Voter/AbstractVoter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class AbstractVoter implements VoterInterface
2626
*/
2727
public function supportsAttribute($attribute)
2828
{
29-
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.');
29+
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.', E_USER_DEPRECATED);
3030

3131
return in_array($attribute, $this->getSupportedAttributes());
3232
}
@@ -36,7 +36,7 @@ public function supportsAttribute($attribute)
3636
*/
3737
public function supportsClass($class)
3838
{
39-
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.');
39+
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.', E_USER_DEPRECATED);
4040

4141
foreach ($this->getSupportedClasses() as $supportedClass) {
4242
if ($supportedClass === $class || is_subclass_of($class, $supportedClass)) {
@@ -115,7 +115,7 @@ public function vote(TokenInterface $token, $object, array $attributes)
115115
*/
116116
protected function supports($attribute, $class)
117117
{
118-
@trigger_error('The getSupportedClasses and getSupportedAttributes methods are deprecated since version 2.8 and will be removed in version 3.0. Overwrite supports instead.');
118+
@trigger_error('The getSupportedClasses and getSupportedAttributes methods are deprecated since version 2.8 and will be removed in version 3.0. Overwrite supports instead.', E_USER_DEPRECATED);
119119

120120
$classIsSupported = false;
121121
foreach ($this->getSupportedClasses() as $supportedClass) {
@@ -159,7 +159,7 @@ protected function isClassInstanceOf($actualClass, $expectedClass)
159159
*/
160160
protected function getSupportedClasses()
161161
{
162-
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.');
162+
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.', E_USER_DEPRECATED);
163163
}
164164

165165
/**
@@ -171,7 +171,7 @@ protected function getSupportedClasses()
171171
*/
172172
protected function getSupportedAttributes()
173173
{
174-
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.');
174+
@trigger_error('The '.__METHOD__.' is deprecated since version 2.8 and will be removed in version 3.0.', E_USER_DEPRECATED);
175175
}
176176

177177
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy