You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #15922 [Security] Fix trigger_error calls in voters (WouterJ)
This PR was merged into the 2.8 branch.
Discussion
----------
[Security] Fix trigger_error calls in voters
Fixes typos found by @weaverryan in #15151
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Commits
-------
69e80be Fix trigger_error calls
if ($supportedClass === $class || is_subclass_of($class, $supportedClass)) {
@@ -115,7 +115,7 @@ public function vote(TokenInterface $token, $object, array $attributes)
115
115
*/
116
116
protectedfunctionsupports($attribute, $class)
117
117
{
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);
0 commit comments