Change return value from getItem in TransientCache

[MAILPOET-3778]
This commit is contained in:
Jan Lysý
2021-09-01 11:31:12 +02:00
committed by Veljko V
parent 04adfe6fc6
commit aec9ecbcde
2 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ class TransientCache {
public function getItem(string $key, int $id): ?array {
$items = $this->getItems($key);
return $items[$id]['item'] ?? null;
return $items[$id] ?? null;
}
public function getOldestCreatedAt(string $key): ?\DateTime {