Skip to content

Commit 4e25a6a

Browse files
committed
fix: fix a typo about updatePolicy method
fix: fix a typo
1 parent cd5eefc commit 4e25a6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Adapters/DatabaseAdapter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ public function updatePolicy(string $sec, string $ptype, array $oldRule, array $
235235
$instance->first();
236236
$update = [];
237237
foreach($newPolicy as $k => $v) {
238-
$item = 'v' . $k;
239-
$update[$item] = $k;
238+
$update['v' . $k] = $v;
240239
}
241240
$instance->update($update);
242241
}

0 commit comments

Comments
 (0)