From 60dd7daac225838719636b4c1bf0a20ffb2fab63 Mon Sep 17 00:00:00 2001 From: Sergii Shymko Date: Sun, 17 May 2020 17:08:20 -0700 Subject: [PATCH] Fix fetch from array storage --- lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php b/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php index cee54b8..6f349ff 100644 --- a/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php +++ b/lib/Doctrine/KeyValueStore/Storage/ArrayStorage.php @@ -121,7 +121,7 @@ public function find($storageName, $key) throw new NotFoundException(); } - unset($this->data[$storageName][serialize($key)]); + return $this->data[$storageName][serialize($key)]; } /**