Skip to content

Commit

Permalink
Fix memory storage (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Mar 5, 2024
1 parent b79ba7f commit 78bfe04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Storage/MemoryStorage.php
Expand Up @@ -34,6 +34,12 @@ public function read(string $type, ?string $id = null): array
];
}

if ($type === self::TYPE_OBJECTS) {
return [
$this->idGenerator->getId() => array_merge(...array_values($this->getData())),
];
}

return [$this->idGenerator->getId() => $this->getData()];
}

Expand Down

0 comments on commit 78bfe04

Please sign in to comment.