Skip to content

Commit

Permalink
fix(TreeMCacheManager#remove)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 3, 2024
1 parent 61d9750 commit a37689f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/TreeCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function set(string $category, string $type, int $id, $data) {
* @param string $type
* @param int $id
*/
public function remove(string $type, int $id, array $previousFolders): void {
public function remove(string $type, int $id, array $previousFolders = []): void {
$key = $this->getCacheKey($type, $id);
foreach ($this->caches as $type => $cache) {
if (count($previousFolders) !== 0 && ($type === self::CATEGORY_CHILDORDER || $type === self::CATEGORY_CHILDREN_LAYER)) {
Expand Down

0 comments on commit a37689f

Please sign in to comment.