Skip to content

Commit 90b2eb3

Browse files
committed
refactor: run rector
1 parent 601f38f commit 90b2eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Authorization/Traits/Authorizable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ private function saveGroupsOrPermissions(string $type, $model, array $cache): vo
350350
$new = array_diff($cache, $existing);
351351

352352
// Delete any not in the cache
353-
if (count($cache)) {
353+
if ($cache !== []) {
354354
$model->deleteNotIn($this->id, $cache);
355355
}
356356
// Nothing in the cache? Then make sure

0 commit comments

Comments
 (0)