Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory storage #248

Merged
merged 3 commits into from Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Storage/MemoryStorage.php
Expand Up @@ -34,6 +34,12 @@
];
}

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

Check warning on line 40 in src/Storage/MemoryStorage.php

View check run for this annotation

Codecov / codecov/patch

src/Storage/MemoryStorage.php#L38-L40

Added lines #L38 - L40 were not covered by tests
}

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

Expand Down