Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 708edd6

Browse files
kalessilfabpot
authored andcommitted
[2.3] Static Code Analysis for Components
1 parent 117752e commit 708edd6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Acl/Dbal/MutableAclProvider.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,6 @@ private function updateNewFieldAceProperty($name, array $changes)
785785
{
786786
$sids = new \SplObjectStorage();
787787
$classIds = new \SplObjectStorage();
788-
$currentIds = array();
789788
foreach ($changes[1] as $field => $new) {
790789
for ($i = 0, $c = count($new); $i<$c; $i++) {
791790
$ace = $new[$i];
@@ -813,8 +812,6 @@ private function updateNewFieldAceProperty($name, array $changes)
813812
$aceIdProperty = new \ReflectionProperty('Symfony\Component\Security\Acl\Domain\Entry', 'id');
814813
$aceIdProperty->setAccessible(true);
815814
$aceIdProperty->setValue($ace, (int) $aceId);
816-
} else {
817-
$currentIds[$ace->getId()] = true;
818815
}
819816
}
820817
}

0 commit comments

Comments
 (0)