Skip to content

Commit c1a2a0a

Browse files
committed
[Security] fixed DebugAccessDecisionManager::setVoters()
1 parent 3726aa1 commit c1a2a0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function decide(TokenInterface $token, array $attributes, $object = null)
6262
*/
6363
public function setVoters(array $voters)
6464
{
65-
if (!$this->manager instanceof AccessDecisionManager) {
65+
if (!method_exists($this->manager, 'setVoters')) {
6666
return;
6767
}
6868

0 commit comments

Comments
 (0)